I have a table that has just Months in a column. As in January, February......
I want to convert these to Numbers as in 1-12 in VBA. I tried all the DatePart in every combination but can't seem to get the results.
Otherwize the easiest way is to make a new table, add the 12 months, with the appropriate numbers in a second column and join them in a query....
In VBA, if you are married to that idea....
Code:
Function fnRenumberMonth(MonthName as string) as integer
select
case monthname = "January"
fnRenumberMonth = 1
case .... etc...
end select
end function