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

Add new record in primary and secordary table using VBA

Status
Not open for further replies.

Moss100

Technical User
Aug 10, 2004
584
GB
Hello I would like to add a new record in my main table PROPERTY and also in my secondary table OCCUPANTS using VBA, from an unbound form.


The database is call PERSONS
The PROPERTY table has autonumber field - ID
The OCCUPANTS table has a field PROPERTY_REF into which I need to insert the ID from the PROPERTY table to create the relationship.

Please could someone show me how to do this in VBA

Many thanks

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top