Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    davegri's Avatar
    davegri is online now Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407

    If you put the code to modify the form's recordsource in the form's open event, that would guarantee the form was open when the assignment was made.

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    If you don't want user to see data until RecordSource is set, open form hidden then after RecordSource is set, unhide. Otherwise, stay with the QueryDefs code.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. VBA Unable to find referenced form
    By mdev in forum Programming
    Replies: 5
    Last Post: 03-02-2018, 10:28 AM
  2. Replies: 9
    Last Post: 12-08-2017, 02:21 PM
  3. Replies: 8
    Last Post: 06-30-2016, 02:13 PM
  4. Can't find referenced field error
    By Thompyt in forum Programming
    Replies: 7
    Last Post: 09-04-2015, 09:00 AM
  5. Replies: 1
    Last Post: 03-05-2014, 07:55 AM

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