D
DaveB
This is my VB.
Private Sub CityName_LostFocus()
'Copy the CompletionDateTime to Date
If IsNull(Date) Or Len(Date) = 0 Then
Me!Date = (CompletionDateTime)
End If
End Sub
But when I try to run it I get, "Compile Error:Variable
not defined". How can I make it automatically fill in the
(CompletionDateTime) into the (Date) field, and what is
wrong with my VB?
Private Sub CityName_LostFocus()
'Copy the CompletionDateTime to Date
If IsNull(Date) Or Len(Date) = 0 Then
Me!Date = (CompletionDateTime)
End If
End Sub
But when I try to run it I get, "Compile Error:Variable
not defined". How can I make it automatically fill in the
(CompletionDateTime) into the (Date) field, and what is
wrong with my VB?