G
Guest
From the input of a date in short format, say 5/1/2005, I want to output the
name of the month. For example, May. I made a small table with the names of
the months and the corresponding numbers, and I'm trying to use DLookup, but
I'm having trouble figuring out what to do with the months represented by two
digits. Is there an easy function that will do this?
I tried to work with this:
Left$(DLookUp("[Month_Name]","[tbl_Months_of_the_Year]","[Month_Number]=string(1,left$([txtDate],1))"),3) & (Right$(txtDate],2))
where the txtDate is in the mm/dd/yyyy format
Will this work when the month has two digits?
name of the month. For example, May. I made a small table with the names of
the months and the corresponding numbers, and I'm trying to use DLookup, but
I'm having trouble figuring out what to do with the months represented by two
digits. Is there an easy function that will do this?
I tried to work with this:
Left$(DLookUp("[Month_Name]","[tbl_Months_of_the_Year]","[Month_Number]=string(1,left$([txtDate],1))"),3) & (Right$(txtDate],2))
where the txtDate is in the mm/dd/yyyy format
Will this work when the month has two digits?