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

Access Auto Update Field from one Table to Another.

Status
Not open for further replies.

batcater98

Programmer
May 30, 2007
7
US
I have two tables in access - In the primary table when a record is created I want to automatically use the primary key from this table and search for that key in another table. If found I want to "Clear" that value from the secondary table and leave it blank.

How would I do this? SQL, VB, Macro.. What would be best.

Thanks.
 
One way is to use the AfterInsert event procedure of the form used to populate the primary table and launch an UPDATE statement with the DoCmd.RunSQL method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top