We can replace your code in just one line. Just let me know the outcome of the above.
That's very promising! I can't wait to break the back of it, although it gives me an #Error when I test it. What could probably cause such an error?
We can replace your code in just one line. Just let me know the outcome of the above.
[COLOR=red]=[/COLOR]UCase(Chr(Asc(Nz(DMax("[COLOR=red][[/COLOR]Letter[COLOR=red]][/COLOR]", "T_M_AutoClaimNo", "[COLOR=red][[/COLOR]GroupType[COLOR=red]] [/COLOR]= 'GC'"), [COLOR=red]"@"[/COLOR])) + 1))
Ok, we're going to keep adding to the code. This:
?Code:=Asc(Nz(DMax("[Letter]", "T_M_AutoClaimNo", "[GroupType] = 'GC'"), "@"))
And are you sure when you copied the copied you didn't miss off a parens?
You don't need that.I already set the format of the [letter] field to '>' to get it in upper case
So you must have missed off a parenthesis when you copied the code. It happens sometimes in these boxes.
I'm guessing you know how to do the other bits?
="CLM/GC/" & Format(Nz(DMax("[Letter]", "T_M_AutoClaimNo", "[GroupType] = 'GC'"), 0) + 1, "0000") & "2010" & Chr(Asc(Nz(DMax("[Letter]", "T_M_AutoClaimNo", "[GroupType] = 'GC'"), "@")) + 1)