This formula should work. It will find the largest number currently in the
field, add one, then format it to 3 characters.
=Format(DMax("[FieldName]", "[TableName]") + 1, "000")
What do you want done if you go beyond 999?
--
Wayne Morgan
MS Access MVP
"Robert T" <(E-Mail Removed)> wrote in message
news:7DE04536-8C15-4925-95C6-(E-Mail Removed)...
>I am a long time user of a product called "Alpha Five" where you simply
>place
> a check mark in the field rule for a primary key text field and it will
> automatically increment the value for each record. For example, Class_ID
> "003" will become "004" on the next record.
>
> I checked everywhere I could in Access 2000 and could not find a similar
> field rule unless I use a numeric field. I'm assuming I will have to
> program
> some type of autoincrement field rule for a text field. Can someone please
> advise how I can do such? Hopefully there is a simple solution.
>
> Thanks,
> Robert T
|