Results 1 to 9 of 9
  1. #1
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95

    Requering the subform shown on main form

    Hello everybody.



    I don't know how to requery a subform to show me data in real time based on input in the main form.. I have linked REQUEST NO (master and child fields are both set to REQUEST NO) and I see the data but after I save the record and go one record back and forward to see current record again...

    Click image for larger version. 

Name:	REQUERING THE SUBFORM SHOWN ON MAIN FORM.jpg 
Views:	25 
Size:	302.0 KB 
ID:	23846

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    if the name of your subform is subF, then
    subF.requery

  3. #3
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95
    Hello.. It doesn't work.. Hm.. Never mind.. I will leave it as it is..

    Thanks.

  4. #4
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    not sure why it didn't work vazdajic, what ranman gave should work but i would suggest putting it in the after update event of the mainform request NO. that way you are triggering the requery after you enter the value.

  5. #5
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95
    It just doesn't work, unless I go a record BACK and FORWARD.. Then, everything appears.. Hm..

    If you have time, please take a look on the DATABASE ATTACHED

    Click image for larger version. 

Name:	Requiry.jpg 
Views:	16 
Size:	158.0 KB 
ID:	23877
    Attached Files Attached Files

  6. #6
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    Requery problems.zip
    made a few changes including the requery. it does bring up all the reports but not the one you are working on.

  7. #7
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95
    Great Job!

    What you did is is what I wanted;
    when I enter request no and click on report no combo, all reports related to that request appear (I don't have to go BACK and FWD).. Then, when I enter report no and click revision combo, a list updates with how many times that current report I'm working on has been checked and by who etc...

    Thank you so much!!!!!!!

  8. #8
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    Glad to help but do you see what was done so that you will be able to do it? look at the query for the subform, it now points to the text box for criteria and then the afterupdate event of the text box refreshes the subform.

  9. #9
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95
    Thanks... I see what you have done.. My mistake was, I rerequired it separately which used to show me an error.. But, you rerequired both list on the main form and the subform together..

    Thank you once again..

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

Similar Threads

  1. Replies: 1
    Last Post: 11-04-2015, 07:25 AM
  2. Replies: 4
    Last Post: 11-06-2014, 05:35 AM
  3. Main form and subform
    By jle0003 in forum Forms
    Replies: 4
    Last Post: 07-08-2014, 09:23 AM
  4. Replies: 3
    Last Post: 04-17-2012, 10:28 AM
  5. opening a second form from main/subform
    By PJPCVP in forum Database Design
    Replies: 1
    Last Post: 10-29-2010, 09:50 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