MsLady
Traumatized by Access
- Local time
- Today, 06:09
- Joined
- Jun 14, 2004
- Messages
- 434
Hi Rural Guy.
Thanks. I swayed from that approach since i wasn't getting anywhere.
I created a field in my table [jobIdSequence] and use this bound control on my form with controlsource (=Nz(DMax("[jobIdSequence]","tblJobDetails",Format([timeIn],'mmyy')=Format[timeIn],'mmyy')),0)+1)
I have a date field [timeIn].
Then my jobId (which is what i need to have the format of mmyy-0001 and restart at each month), i set the control source as (=Format([timeIn],"mmyy") & Format([jobIdSequence],"0000"))
1. The numbers don't restart at teh beginning of the month.
2. secondly, what do you think of this approach
Thanks. I swayed from that approach since i wasn't getting anywhere.
I created a field in my table [jobIdSequence] and use this bound control on my form with controlsource (=Nz(DMax("[jobIdSequence]","tblJobDetails",Format([timeIn],'mmyy')=Format[timeIn],'mmyy')),0)+1)
I have a date field [timeIn].
Then my jobId (which is what i need to have the format of mmyy-0001 and restart at each month), i set the control source as (=Format([timeIn],"mmyy") & Format([jobIdSequence],"0000"))
1. The numbers don't restart at teh beginning of the month.
2. secondly, what do you think of this approach