I am trying to retrieve the autonumber from a linked SQL table into an Access DB form. What I need is to have the autonumber field data to be displayed as soon as I tab out of another field on the form. I tried the following using AfterUpdate and the Requery as follows:
Private Sub fieldname_AfterUpdate()
Me!fieldname.Value = UCase(Me!fieldname.Value)
Forms!Formname.Requery
This displays the autonumber in the Identity Field but then immediately displays the first record in the linked table. I need to redisplay the new record and continue to update the other fields of the record.
I also tried updating all fields and then Save the record but the Autonumber field only momentarily displays the new record ID. Again, I need the new ID (Identity/AutoNumber) to remain on the screen until I can record it for future processing in another form at an unspecified date and time.
Thank You for your help.
Private Sub fieldname_AfterUpdate()
Me!fieldname.Value = UCase(Me!fieldname.Value)
Forms!Formname.Requery
This displays the autonumber in the Identity Field but then immediately displays the first record in the linked table. I need to redisplay the new record and continue to update the other fields of the record.
I also tried updating all fields and then Save the record but the Autonumber field only momentarily displays the new record ID. Again, I need the new ID (Identity/AutoNumber) to remain on the screen until I can record it for future processing in another form at an unspecified date and time.
Thank You for your help.