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

calculated fields

ResolvedVersion Standard

Calculated Fields

Hi,

I am trying to remember how to create a calculated field such that I create a personal "ID" from the autonumber (which is held in another column) so that they all read (for example) "ABC3554" instead of the simple autonumber of "3554".

Many thanks

RE: Calculated Fields

Hi Sarah, Thank you for the post, in answer to your question this requires you to create a concatenated field in a query, you will need another field which will hold the prefix we will call this field [prefix] and join this field to the autonumber field, in your query design grid in a blank field enter the following: NewID:[prefix]&[OldID] where NewID: is to be the label and [OldID] your existing autonumber field name. The concatenated field will then be available as an autonumber field in a form or table for new entries. I hope that jogged your memory, best regards Pete.

Access tip:

Splittng a database

Split your database into two (at least).

Keep all of your code, forms, reports, etc. in one 'code' database and all of your tables in another 'data' database which is then linked to the 'code' database.

This makes modifications, updates and back-ups that much easier and allows you to work on a new version of your 'code' database without affecting existing users. It also makes it easier should you wish to convert a single user databases into a multi-user networked version.

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.