I have a form that contains 2 fields FirstRunDate and NextRunDate. Both are simple date fields (no time involved).
I am trying to compare the FirstRunDate field to Today() and run a process. Otherwise if it does not equal Today(), I want it to compare Today() to NextRunDate.
However, I am getting an error on the first IF statement and do not see the problem.
Any ideas?
If reqDoc.FirstRunDate(0).DateOnly = Today Then
reqDoc.LastRunDate = Today
Call reqDoc.Save ( True , False )
Elseif reqDoc.NextRunDate(0).DateOnly = Today Then
reqDoc.LastRunDate = Today
Call reqDoc.Save ( True , False )
End If