M
mma40
I need to evaluate if LastVisited Field is equal to today with an if
statement but can't get it to work. The Field is calculated as
=DMax("VisitDate", "VisitTable", "ClientID = " & Nz([ClientID],0)). I
am using Short Date format of 01/01/2006
I am using the following and have tried other variations:
If DateValue(Me.LastVisited) = Date Then
MsgBox "Today's Visit Already Exits"
End If
Any ideas?
statement but can't get it to work. The Field is calculated as
=DMax("VisitDate", "VisitTable", "ClientID = " & Nz([ClientID],0)). I
am using Short Date format of 01/01/2006
I am using the following and have tried other variations:
If DateValue(Me.LastVisited) = Date Then
MsgBox "Today's Visit Already Exits"
End If
Any ideas?