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

formatting autonumbers

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

Formatting autonumbers

ResolvedVersion 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 An Inaccessible Field On A Form

There is sometimes a need to make a field in a form look like a normal field but be completely inaccessible to the user. To do this:

In the Field's Properties
Set the ENABLED property to No
Set the LOCKED property to Yes

The field will not grey out, but the user will not be able to do anything with it.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.