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

Getting EOF Record information

Status
Not open for further replies.

jossimon

Programmer
Feb 4, 2005
39
US
I am using a form to add a record to a table. I want to then retrieve the Primary Key, "Ticket Number," after the table has been updated. I am not up to par on Recordsets, but I am pretty sure I just need to get EOF of a recordset and select that field in a SQL String. How do I get the EOF Record in a recordset?

Thanks!
 
I'm not sure exactly what you're trying to do.

Do you want to use the ticket number to do something directly after the record is created? Or do you want to go back and get it later?

What are you going to be doing with the ticket number?
 
I am adding a record to a table. The primary id on the table is ticketno. I simply want a msgbox that says, "Ticket # _____ has been successfully created!"

I might be making this more difficult than it has to be.
 
Do a search on @@identity

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top