R
Richard Harison
I tried it in both the default value property of an unbound text box and in a VB
function
control: =Format(DateSerial(Year(Date()),Month(Date()),1),"m\/d\/yyyy")
VBFunction: MonthEnd=
Format(DateSerial(Year(Date()),Month(Date()),1),"m\/d\/yyyy")
(Function is dimmed as date)--I can see, as a string why it wouldn't work there
Marsh:
All the Best
Richard Harison
function
control: =Format(DateSerial(Year(Date()),Month(Date()),1),"m\/d\/yyyy")
VBFunction: MonthEnd=
Format(DateSerial(Year(Date()),Month(Date()),1),"m\/d\/yyyy")
(Function is dimmed as date)--I can see, as a string why it wouldn't work there
Marsh:
That's what I ended up doing. ThanksIf you just want to have the default value property to be
the first of the current month without using VBA, you can
set the DefaultValue property in form design to the
expression:
=DateSerial(Year(Date()),Month(Date()),1)
and don't forget that the = sign is optional.
All the Best
Richard Harison