first day of each month?

genevx

Registered User.
Local time
Today, 13:39
Joined
Jul 3, 2002
Messages
36
hello all,

i'm trying to make a text box default to the first day of the current month and year. Anyone know what i have to toggle with or write? =)

genevx
 
Not sure specifically... but check out the vba class DateTime in the object browser. It looks like there is something that might help you out like maybe the month method in combination with something else. Also maybe the DatePart function which returns something like the first day of the year given now() or date()....

good luck,
norm
 
Last edited:
found out!
it's: DateSerial(Year(Date()),Month(date()), 1)

thanks for the reply!

genevx
 

Users who are viewing this thread

Back
Top Bottom