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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Form to update before query runs

Status
Not open for further replies.

mattborn

Technical User
Jul 9, 2002
19
US
My form has a button to run a query, but if I enter my info on the form and press the query button, the information isn't included on the query. To get it to work I have to go to another record, then back to the one I was on, and then I can get the correct query. Anyway to have it update automatically?
 
In the code you run your query, immediately before do a
Code:
RunCommand acCmdSaveRecord

That should save the current record (or error trying).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top