Results 1 to 4 of 4
  1. #1
    altemir is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    31

    NavigationSubform Not Populating Records

    Good day all ... I have a NavigationSubform container that contains a subform called "frmJobBoard". When the database is initially launched, frmJobBoard automatically displays since it is under the first navugation button loaded in the NavigationSubform navigation menu. The problem is that it shows no records. I have a frmJobBoard.Recordsource = strSQL statement in the OnOpen event of frmJobBoard. This causes the page to successfully display records, but only if the "Job Board" navigation button is clicked. How do I assign the recordsource to frmJobBoard upon initial launch to display a default recordset?



    It's as if frmJobBoard is not actually opened unless the navigation button is clicked despite being displayed in full view. Where and when do I set the recordsource and issue a requery?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You are not setting the RecordSource property in the property dialog in form design?
    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
    altemir is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    31
    No. I'm setting the recordsource in VBA in the OnOpen event of the form.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    But you can set the property in design view so will open with default. Not sure why the code isn't working. I haven't used the Navigation form. Do you want to provide project for analysis? Follow instructions at bottom of my post.
    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: 0
    Last Post: 02-15-2011, 01:43 PM
  2. Replies: 2
    Last Post: 12-17-2010, 11:12 PM
  3. Populating fields
    By bjr001 in forum Forms
    Replies: 4
    Last Post: 10-11-2010, 10:19 AM
  4. Populating Fields
    By deiniolj in forum Forms
    Replies: 21
    Last Post: 12-08-2009, 10:51 AM
  5. Self Populating Fields
    By kellyd in forum Access
    Replies: 0
    Last Post: 09-17-2009, 10:20 AM

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