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

How can I save the current record before a requery

Status
Not open for further replies.

red22j

Programmer
Aug 1, 2002
10
0
0
US
What I want to do is simple:

basically i want to run the requery command on a subform, but save the current record. When I run requery currently, it goes to the first record. I can't rely on the currentrecord property, because records may have been added or deleted since the last requery.

Any help would be appreciated,
Jon
 
Don't rmember the exact syntax at this time (not at a box where I an figure it out), you will need to create a recordset clone of your subform, set the bookmark of the clone to the bookmark of the subform, run your requery, then reset you bookmark for the form back to the bookmark for the recordset clone.

I have used it before and it works....just can't gte to my code right now.... The secret to creativity is knowing how to hide your sources. - Albert Einstein [spin]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top