I have developed a database for my CD collections using ACCESS 2003.
I have several tables including these:
1. tblCategory: a) Easy Listening, b) Jazz, c)Country etc. Each category is uniquely given a 2-letter abbreviation; for example EL is for easy listening, JZ is for Jazz, CL for classic
2. tblArtists: Each singer has been assigned a unique 3-letter. For example, John Denver is JDA, Julio Iglesias is JIB etc.
I am trying to update the serial number of the records automatically. I would like the serial number to come up as:
EL.JDA.01.014.0100
Here EL = Easy Listening
JDA = John Denver
01 = First CD of John Denver in Easy Listening category
014 = Fourteenth CD in Easy Listening Category
0100 = It’s 100th CD of the entire collection
Now when I make the next entry for John Denver in Country collection (7th CD in this category), I want the txtSerial to automatically populate as CO.JDA.01.007.0101.
Or when the next entry is for John Denver in Easy Listening the serial number text box should automatically populate as:
EL.JDA.02.015.0101
How do I do it?
The form I use to enter CD data is named, frmCDDetail that is based on a table called tblCDDetail which has these fields:
MusicCategoryID
ArtistID
Can somebody please help?
I have several tables including these:
1. tblCategory: a) Easy Listening, b) Jazz, c)Country etc. Each category is uniquely given a 2-letter abbreviation; for example EL is for easy listening, JZ is for Jazz, CL for classic
2. tblArtists: Each singer has been assigned a unique 3-letter. For example, John Denver is JDA, Julio Iglesias is JIB etc.
I am trying to update the serial number of the records automatically. I would like the serial number to come up as:
EL.JDA.01.014.0100
Here EL = Easy Listening
JDA = John Denver
01 = First CD of John Denver in Easy Listening category
014 = Fourteenth CD in Easy Listening Category
0100 = It’s 100th CD of the entire collection
Now when I make the next entry for John Denver in Country collection (7th CD in this category), I want the txtSerial to automatically populate as CO.JDA.01.007.0101.
Or when the next entry is for John Denver in Easy Listening the serial number text box should automatically populate as:
EL.JDA.02.015.0101
How do I do it?
The form I use to enter CD data is named, frmCDDetail that is based on a table called tblCDDetail which has these fields:
MusicCategoryID
ArtistID
Can somebody please help?