Results 1 to 4 of 4
  1. #1
    smbrush is offline Experienced Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2018
    Posts
    30

    Subform multi-select lost when focus is moved to another control

    I'm developing a form with a subform in datasheet view. When I select multiple rows in the subform and then move the focus to another control on the form, the row selection in the subform changes to just the first row in the original selection. For instance, if I select three contiguous rows in the subform using the record selector and then click on another control, the selection changes so that only the top row in the original selection remains selected. The two rows below cease to be selected.



    Does anyone have any ideas on how to prevent this loss of row selection in the subform from happening?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Can't - this is normal behavior. Why do you need the rows to remain selected?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    smbrush is offline Experienced Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2018
    Posts
    30
    Selection and display of records from other tables are added to list boxes. The values in the selected subform rows are also displayed. I'm concerned that the user will become confused to see his/her row selection disappear after the list boxes are populated.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Could probably apply some code that filters the subform to the selected records, otherwise users will have to learn.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 03-24-2016, 03:11 PM
  2. Setting the focus on a control in a subform
    By fritesmodern in forum Programming
    Replies: 1
    Last Post: 07-31-2015, 09:10 AM
  3. Replies: 3
    Last Post: 10-09-2012, 11:58 PM
  4. Replies: 6
    Last Post: 05-05-2012, 08:43 AM
  5. Replies: 0
    Last Post: 04-11-2011, 01:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums