C
Clarkey
Hi there,
Needing some help with trying to generate and display an incrementing auto
number on a form. I have scoured some of the forums but haven't had any luck
with getting such a simple thing to work.
I have a student database which I am trying to create a unique student ID
number based on a set prefix each time I go to add a new student. For example:
Student ID - ABC 09 1
Where ABC = set prefix
09 = the current year
1 = would represent the autonumber (primary key)
The only luck I have been having with getting this to work is entering the
following syntax in the field's Default Value, however the ID number wont
appear.
="ABC" & Format(Date,"yy") & [TableName]![ID]
I know there are probably several different ways on doing this but not
having much programming experience I have managed to get this far and its
working to some degree. Obviously there is something wrong with picking up
the ID (primary key).
If anyone could shine some light on it for me that would be appreciated.
Cheers
Needing some help with trying to generate and display an incrementing auto
number on a form. I have scoured some of the forums but haven't had any luck
with getting such a simple thing to work.
I have a student database which I am trying to create a unique student ID
number based on a set prefix each time I go to add a new student. For example:
Student ID - ABC 09 1
Where ABC = set prefix
09 = the current year
1 = would represent the autonumber (primary key)
The only luck I have been having with getting this to work is entering the
following syntax in the field's Default Value, however the ID number wont
appear.
="ABC" & Format(Date,"yy") & [TableName]![ID]
I know there are probably several different ways on doing this but not
having much programming experience I have managed to get this far and its
working to some degree. Obviously there is something wrong with picking up
the ID (primary key).
If anyone could shine some light on it for me that would be appreciated.
Cheers