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!

getting the row number that has been inserted... 1

Status
Not open for further replies.

babe1898

Programmer
Nov 26, 2003
29
CA
Hello everyone...

I'm using Microsoft access for my datababe AND i want to get the ID(PRIMARY KEY) of the row that has been inserted. Also i'm NOT USING auto generated number for the ID. What is the sql command for this?Could anyone help me...thanks
 
Hi,

One way would be to record the date and time when the data is added, that way you could then look for the biggest date,

or create an autonumber field (not as the key) and use select max(autonumber field).

Nowell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top