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

Help with Insert or Update

Status
Not open for further replies.

welshone

Programmer
Jul 30, 2001
414
GB
Hello,
I've posted a question on the general forum about a command not working, but maybe somebody here knows a better way of doing this :

If fields in one table = fields in another table then I want to update that record, but if the fields don't match then I want to Insert the record.
(typical Update or Insert Queries).
how would you do this in access from a click of a button ?
 
You would have to do this in two different queries. One to update the data in the table and another to add the extra records. Put VBA code in your On Click event to run both of these queries... Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top