formatting autonumbers

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

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

Formatting autonumbers

resolvedResolved · Medium Priority · Version 2007

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

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.


 

Access tip:

Create own ribbon tab - Access 2010

a. In Access click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

View all Access hints and tips


Server loaded in 0.09 secs.