C
condarko
Hello!
I have been trying to figure this out for literally a week, and I'
going bonkers!
I have a form in which records are entered, and each record needs to b
assigned an ID according to the Salesman, Month, Year and Record Number
So far, I got the form to combine the Salesman, Month and Year in th
ID (Ex: RBJan05) by using DLookUp, but I am missing the Record Number.
The problem is, the record number needs to be the order the record i
entered, but restarts when it is a different Salesman, or Month
Year.
I tried creating a field called AutoNumber and starting off every mont
& year combo in the table with a 1, and then entering the expression i
my form:
=DMax("[AutoNumber]","tblSAMSNos","[tblSAMSNos]![MonthYear]
[MonthYear]")+1
and it will increase the number correctly but then will change all th
other Record #'s to that as well. I EVEN tried creating a table fo
every month for the rest of this year and all of next and using a lon
IIf expression, but that didn't work either. Am I totally overthinkin
this? Whoever can solve this is my HERO
I have been trying to figure this out for literally a week, and I'
going bonkers!
I have a form in which records are entered, and each record needs to b
assigned an ID according to the Salesman, Month, Year and Record Number
So far, I got the form to combine the Salesman, Month and Year in th
ID (Ex: RBJan05) by using DLookUp, but I am missing the Record Number.
The problem is, the record number needs to be the order the record i
entered, but restarts when it is a different Salesman, or Month
Year.
I tried creating a field called AutoNumber and starting off every mont
& year combo in the table with a 1, and then entering the expression i
my form:
=DMax("[AutoNumber]","tblSAMSNos","[tblSAMSNos]![MonthYear]
[MonthYear]")+1
and it will increase the number correctly but then will change all th
other Record #'s to that as well. I EVEN tried creating a table fo
every month for the rest of this year and all of next and using a lon
IIf expression, but that didn't work either. Am I totally overthinkin
this? Whoever can solve this is my HERO