Get id of post just written

svjensen

Registered User.
Local time
Today, 14:43
Joined
May 6, 2010
Messages
37
I will be using VBA to import a large quantity of data from excel to access.
Let us say, that I have two tables which I need to write the data into:

tblMain with two fields:
uid (auto numbering)
Titel (text)

tblSub with three fields:
uid (auto numbering)
MainUid (number)
Text (text)

The number in 'MainUid' in 'tblSub' should be identical to the number given when writing data to 'tblMain' (hope this makes sense :)).

My question then is - is there an easy way to get the number issued to the field 'uid' in 'tblMain', without having to run a 'select' query?

/Soren
 

Users who are viewing this thread

Back
Top Bottom