M
margaret
using Access 2007 Windows XP
I'm attempting to insert a default value in a control on a form
(frmCashrcpt) the control is CURDATE. On the form OnOpen command I have this:
Private Sub Form_Open(Cancel As Integer)
Me!CURDATE.DefaultValue = """" & DLookup = (fairdate!tblfairdate) & """"
End Sub
However, it's telling me that is is a compile error and DLookup is not an
option.
Huh?
Appreciate any help.
I'm attempting to insert a default value in a control on a form
(frmCashrcpt) the control is CURDATE. On the form OnOpen command I have this:
Private Sub Form_Open(Cancel As Integer)
Me!CURDATE.DefaultValue = """" & DLookup = (fairdate!tblfairdate) & """"
End Sub
However, it's telling me that is is a compile error and DLookup is not an
option.
Huh?
Appreciate any help.