I want to check a Date Field with an if statement ascertain if it has a value or not.
If it does not have a value I want to put today’s date in. If it has a value I want to make it no value or blank.
I can easily do this to a text field but having trouble with a date field.
SAMPLE CODE
;Togggles «Travel Flag» field between Today’s date and as a cleared field or blank.
Field “Travel Flag”
If «Travel Flag»=""
;then
«Travel Flag»=Today()
;
Else
If «Travel Flag»=""
Endif
SUMMARY
It seems the if statement does not like or recognize if the date field is blank.
Not a show stopper but how do you check to see if a date field is blank?