Getting Month

momoko

Registered User.
Local time
Today, 02:15
Joined
Oct 7, 2001
Messages
41
Hi,
I have a comparsion in month, for example :

Dim Test as string
Test = "Aug2002"

if test = format(date, "mmmyyyy"). ' this will only get the current month, how can I get the previous month?

Thanks,
 
It is:-

Format(DateAdd("m", -1, Date), "mmmyyyy")
 

Users who are viewing this thread

Back
Top Bottom