Samoin
asked on
Autonumber Format
Hi Experts,
I'm having a table that has a primary field as auto number. I want to add year to this field and have it reset after each year. Can anybody help me with this please?
Currently it's format as 0"8-"000 but I want it to be using a datetime field called DateofService and use the year mentioned there and create/append the autonumber
For example: DateOfService: 05/01/2007 then GC # 07-001 and if there are other records for that year it should increment it sequentially. If the year changes it should reset and start with the same (05/01/2008 08-001).
Thanks
I'm having a table that has a primary field as auto number. I want to add year to this field and have it reset after each year. Can anybody help me with this please?
Currently it's format as 0"8-"000 but I want it to be using a datetime field called DateofService and use the year mentioned there and create/append the autonumber
For example: DateOfService: 05/01/2007 then GC # 07-001 and if there are other records for that year it should increment it sequentially. If the year changes it should reset and start with the same (05/01/2008 08-001).
Thanks
Table name: TBL_BCInformation
Fields: GC # (primary key) autonumber
DateofService Datetime
ASKER
Hi LSMConsulting,
Can you show how I can create a custom sequential number that can be used as primary key? Yes I do have multiple users in this database.
Thanks
Can you show how I can create a custom sequential number that can be used as primary key? Yes I do have multiple users in this database.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Do you have multiple users in this database? If you do, the task is much more involved.