Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return autonumber value of newly inserted record?
Message
From
22/11/2000 12:01:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Return autonumber value of newly inserted record?
Miscellaneous
Thread ID:
00444659
Message ID:
00444659
Views:
32
I'm INSERTing a record into an Access database that uses the AutoNumber datatype for its primary key field. Table definition is as follows:

Table: RefHdr
Fields: RefHdrKey AutoNumber
AuthNo Char(13)
Comment Char(30)

I do a: INSERT INTO RefHdr (AuthNo,Comment) VALUES ('3001','Referred to Dr. X')

After doing the INSERT, how can I determine what Access assigned to the RefHdrKey field value, baring in mind that this is a multi-user system with new records being added every few seconds?

Thanks In Advance.

Jon
Next
Reply
Map
View

Click here to load this message in the networking platform