I have a form that uses tbl1 and in that table I have 5 fields.
ID
Name
Date
Status
Notes
I need to be able to set the status field to 1 if there is a date entered in date. If the date is Null or blank I need it to be 0.
I can get it to work with an if statement like this:
IF({date} != Null)
{
({status} = 1);
}
else
{
({status} = 0);
}
When I enter a date in the date field and click update or save it will change the value to 1 in status. However, when I delete the date from the date field and click save it does not change the value of status to 0.
What am I missing?