integritycare
Technical User
Hello,
Just have a quick question. Have searched Tek-tips posts, but was not able to find an answer.
Have three date fields, Datefrom, Dateto and DateDue, on an access form.
I wanted to use the criteria line in a query to show the difference in the datedue between the other two date fields -30days.
This would give a date due for a specific task, but give able to give the employee 30 days to rectify their issue.
I have three queries for this form using an option group. All three queries have various date requirements.
I have tried this code in the query criteria,for the Datedue field but not able to get it to work.
Where is the error please.
Regards,
Integrity
Just have a quick question. Have searched Tek-tips posts, but was not able to find an answer.
Have three date fields, Datefrom, Dateto and DateDue, on an access form.
I wanted to use the criteria line in a query to show the difference in the datedue between the other two date fields -30days.
This would give a date due for a specific task, but give able to give the employee 30 days to rectify their issue.
I have three queries for this form using an option group. All three queries have various date requirements.
I have tried this code in the query criteria,for the Datedue field but not able to get it to work.
Code:
DateDiff("d",[Datefrom],[Dateto])-30
Regards,
Integrity