Alright, I've added a where clause to the code
Ucase(Chr(Asc(Nz(DMax("Letter)", "T_M_AutoClaimNo"), 96)) + 1)) where GroupType = "GC"
Now, in case the code above is correct, where should I place it? Default property of a which textbox? And if it could goes anywhere in the VBA editor where...