formatting autonumbers
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Formatting autonumbers

Formatting autonumbers

resolvedResolved · Medium Priority · Version 2007

replyReply Mon 20 Sep 2010, 12:31Delegate Simon said...

Simon has attended:
Access Introduction course

Formatting autonumbers

Hi, I recall it is possible to format autonumber fields so they generate a sequence, but amended to reflect a particular table's date (e.g. Employee001, Employee002, etc).
How does one do this?
If the autonumber is for the primary key will this impact detrimentally on the database?
Thanks
Simon

For upcoming training course dates see: Pricing & availability

replyReply Tue 21 Sep 2010, 16:55Trainer Anthony said...

RE: Formatting autonumbers

Hi Simon, thanks for your query. Yes, this is possibly and shouldn't impact detrimentally on the database. Set the primary key up as an autonumber and in the Format field property enter:

"Employer"&

That will add the Employer text onto the start of the autonumber field. Add zeroes onto the end for extra prefixes, as such:

"Employer"&0

Have a play and see how far you get. Any other questions, just let us know.

All the best,

Anthony

Tue 28 Sep 2010: Automatically marked as resolved.

 

Please browse our web site to find out more about
2003 access micorosft training and other Microsoft training courses.

Access tip:

Remove spaces in a table

If you have a table that has too many space marks littered around, you can create a update query and use the trim function to get rid of any excess space marks

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard