Results 1 to 8 of 8
  1. #1
    RA99 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Location
    Regina, Saskatchewan, Canada
    Posts
    23

    Refreshing SELECT statement on subform

    I'd better cut right to the chase with an upload, as it's pretty complicated to explain. The "patient" is form ProgramViewF and subforms. My subforms 2 and 3 are correctly updating the table ProgramRoleT with a basic record, but so far, nothing I have been able to put in the event processing for subs 2 or 3 is able to refresh the (complex) SELECT statement in ProgramViewSubF. As a result I can't add the additional data (start and stop dates) to the underlying data of ProgramViewSubF. Any thoughts how I can force a re-select?
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Not experiencing the behavior you describe. Both selections in subforms 2 and 3 show immediately in ProgramViewSubF and I am able to enter dates.
    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
    RA99 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Location
    Regina, Saskatchewan, Canada
    Posts
    23
    In some cases it is working, but ... there's at least one case where it is failing. Find the program "Loak Virsa" (Program ID 91) and try to add a programmer from either subs 2 or 3 or both. They will appear as new records in ProgramRoleT but not in ProgramViewSubF.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Nope. No problem with that one either. I did first delete the 3 existing records before attempting to select in subforms.
    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.

  5. #5
    RA99 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Location
    Regina, Saskatchewan, Canada
    Posts
    23
    The problem is that I need to keep all historical records associated with the program as they are used, among other things, for calculating programmer tenure. Can you see anything that might be preventing addition of records?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I just added a third record for Loak Virsa. Cannot replicate the issue you describe.
    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.

  7. #7
    RA99 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Location
    Regina, Saskatchewan, Canada
    Posts
    23
    Good grief, what an idiot I am - I shut off the vertical scroll bar!! Sorry to take your time, and glad I did not have a big knarly SQL problem in my hands.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    And I was idiot enough to think that was intentional!! I should have asked. Glad it is resolved.
    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. Refreshing a subform
    By RobRoy in forum Forms
    Replies: 8
    Last Post: 07-22-2013, 04:19 PM
  2. SubForm not refreshing
    By hawkins in forum Access
    Replies: 2
    Last Post: 08-16-2011, 04:30 PM
  3. Refreshing a subform?
    By Shag84 in forum Forms
    Replies: 4
    Last Post: 08-07-2011, 10:07 AM
  4. Refreshing subform when form refreshed
    By Remster in forum Forms
    Replies: 27
    Last Post: 10-15-2010, 09:39 AM
  5. Refreshing comboboxes in a subform
    By KB_Dev in forum Programming
    Replies: 1
    Last Post: 04-07-2009, 12:12 PM

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