Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Requery a series of queries from a form

Status
Not open for further replies.

leicklda

Technical User
Mar 18, 2002
46
US
I have a form with a subform. When I change data on the form, I need the subform to update. The problem is that the subform is based on a query, which based on another query, which is based on another query, which is then based on the data I have just changed in the main form.

I have tried requerying the subform object, but that doesn't work. Do I need to requery each series of queries? So I would need to requery query1,2,&3?

And how do I do that?

Any help would be greatly appreciated.
 
At some time you must end up with a recordset on the subform no matter how many queryes you use. You should be able to se the recordset via me.recordset on the subform.

Change the recordset to me.recordset="select ...... Where ID=" & forms!YrForm!Date
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top