DOcaseCASEUPPER(cMes) = "NOV"&& nov
cRes = 11
CASEUPPER(cMes) = ""OCT" && Oct
cRes = 10
CASEUPPER(cMes) = "DEC"&& Dec
cRes = 12
CASEUPPER(cMes) = "ANN"&& "Ann"
........
ENDCASERETURN cRes
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller The only thing normal about database guys is their tables.