Autonumber

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello:

I have an Access 2003 ADP. Most of my primary key fields are autonumber
fields.
Whe a person enters a new record on a form, is there any way for the
autonumber field to show the number immediately? Currently, one has to move
off the record and go back before the number is visible.

Thanks
 
I believe that unlike Autonumbers in Jet databases, SQL Server Identity
fields do not get a value assigned until the record has been saved.
 
Doug is correct, you have to save the record. Rather than moving off the
record and back, you could add a button to save the record, or simply advise
users to hold Shift and press Enter to save the record. If you want to get
more sophisticated, you could do something like adding code to the Exit
event procedure of each control to check whether all required fields have
been entered, and if so automatically save the record.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
Back
Top