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

Copy Record to other database before clearing some fields?

Status
Not open for further replies.

brettatexplace

Technical User
Mar 8, 2002
60
0
0
CA
I have a form that displays a record, and it has a "clear" button on it. When the "clear" button is pressed, I wish to secretly copy the entire record to an identically structured database (using VBA), and then clear most fields displayed on the from to null. ie. Everytime the clear button is pressed, the other database will get a copy of the original record, thereby accumulating all changes to the current database that is displayed with the form.

I know how to clear everything, but what VBA would allow me to simply copy the record, then select the other database, do a paste, then get me back to my current form?

Thanks to all in advance!!!!
 
what database are you using?

in many of them a simple insert into will work, but you may need to use linked servers or linked tables.

Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top