Autonumber

RycherX

Registered User.
Local time
Yesterday, 18:12
Joined
Dec 17, 2009
Messages
16
I have two tables: Master_Transaction & Transaction_Detail; this is a one to many relationship.
When a new row is added to Master_Transaction, the autonumber field creates a unique identifier.

Immediately after Master_Transaction gets updated, I would like to retrieve that new unique identifier and add it into Transaction_Detail.

Is there a way to do this?
 
Then I take it you're not using bound forms?

I do have a form bound to the Transaction_Detail table.
Can you bound two forms? Ideally, I'd like to update two tables at the same time using a unique identifier.
 
Have a look at Forms and Subforms. From what you have said thus far I suspect it may be what you are looking for.
 
Agreed. You don't need to know the main form's ID to populate the sub-form's records automatically.
 
I do have a form bound to the Transaction_Detail table.
Can you bound two forms? Ideally, I'd like to update two tables at the same time using a unique identifier.
Just base your form on a query that has dat from the two linked tables:)
 

Users who are viewing this thread

Back
Top Bottom