R
Rohit Thomas
Hello All,
I have the following code that I am trying to use to
change the default value of a textbox named ArcDelDate on
my form:
Me.ArcDelDate.DefaultValue = DLookup
("[ArchiveComplete]", "tblFileDate")
This should return the date 4/14/2004, however it returns
the following number: 0.000142571998859424. If I place the
DLookup statement in the Default Value properties of the
textbox, the date displays correctly when the form is
opened. Can someone tell me what I'm doing wrong? I would
like to set the default value of the textbox using code
since it will change depending on certain conditions.
Thanks,
Rohit Thomas
I have the following code that I am trying to use to
change the default value of a textbox named ArcDelDate on
my form:
Me.ArcDelDate.DefaultValue = DLookup
("[ArchiveComplete]", "tblFileDate")
This should return the date 4/14/2004, however it returns
the following number: 0.000142571998859424. If I place the
DLookup statement in the Default Value properties of the
textbox, the date displays correctly when the form is
opened. Can someone tell me what I'm doing wrong? I would
like to set the default value of the textbox using code
since it will change depending on certain conditions.
Thanks,
Rohit Thomas