G
Guest
Alright, I've got to make a database for the upcoming year which has an ID
number that changes based on several fields.
Here is a sample ID number: OCV05-0001
The "OCV" is static, it appears in every ID number.
The 05 is the year in which the specimen was collected
and the "0001" is the number of the entry in relation to the position it was
entered;for example, if the first entry for 2005 was entered, it would have
"0001" in that field.
The only solution I could think of, is something to the effect of an IIF
statement which checked the year to see if it was 05. If that is true, then
displays "OCV" & [Collection Year] & "-" (Dmin([Collection
Date],"Table",[Collection Year]=05))
However, I've tried this and it doesnt work. Can someone help a poor, Access
noob out?
This is also a completely inelegant way of getting a solution.
Is there a better way to do this? Actually, is there a way to do this that
it will work. Changing the ID number system is not an option, unfortunately.
Thanks a bunch in advance.
Brandon
number that changes based on several fields.
Here is a sample ID number: OCV05-0001
The "OCV" is static, it appears in every ID number.
The 05 is the year in which the specimen was collected
and the "0001" is the number of the entry in relation to the position it was
entered;for example, if the first entry for 2005 was entered, it would have
"0001" in that field.
The only solution I could think of, is something to the effect of an IIF
statement which checked the year to see if it was 05. If that is true, then
displays "OCV" & [Collection Year] & "-" (Dmin([Collection
Date],"Table",[Collection Year]=05))
However, I've tried this and it doesnt work. Can someone help a poor, Access
noob out?
This is also a completely inelegant way of getting a solution.
Is there a better way to do this? Actually, is there a way to do this that
it will work. Changing the ID number system is not an option, unfortunately.
Thanks a bunch in advance.
Brandon