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

How to retrieve autonumber from linked SQL table in access form

Status
Not open for further replies.

iladtp

Programmer
Oct 22, 2001
6
US
I am trying to retrieve the autonumber from a linked SQL table into an Access DB form. I tried the following using another field on the form as the focus:

Private Sub fieldname_AfterUpdate()
Me!fieldname.Value = UCase(Me!fieldname.Value)
Forms!Formname.Requery

This displays the auto number in the Identity Field but then immediately displays the first record in the linked table. I need to redisplay the new record for update in other fields of the record.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top