G
Guest
In Access 2000, I have two fields in a database that I want to populate with
year-dependent values.
The first field is the last two digits of the year in which the record was
added, saved as text format. I used Expression Builder to automatically
insert the digits as a two-character string.
I want the second field to be a three-character string of numbers that
automatically increments for each new record. However, this field has to
revert to "001" if the field is the first added since the start of the year.
I think this would require a query, but I'm not sure how to match up a query
with a macro in Access.
Should I do this using a standard Access macro or VBA code? Any help would
be great.
year-dependent values.
The first field is the last two digits of the year in which the record was
added, saved as text format. I used Expression Builder to automatically
insert the digits as a two-character string.
I want the second field to be a three-character string of numbers that
automatically increments for each new record. However, this field has to
revert to "001" if the field is the first added since the start of the year.
I think this would require a query, but I'm not sure how to match up a query
with a macro in Access.
Should I do this using a standard Access macro or VBA code? Any help would
be great.