Hi there, im hoping someone might be able to painlessly tell me what im incorrectly doing here/expecting.
Im using Access 2007
I am creating a query to show ongoing tasks in a database.
in the fields I have
Start date (dd/mm/yyyy)
Duration (months)
Basically i want the query to calculate is if start date + Duration is greater than today...
so ive used
Dateadd("m",[duration],[start date])
this is great up to this point - it will show on running the finish date in the format dd/mm/yyyy
but when I add the criteria
>date()
I get the error message "data type mismatch in criteria expression"
I think the criteria is formed correctly - as it works on the start date field independently.
Infact if i put any criteria in the field that the dateadd is present i get the same message.
Basically - are the two conditions - dateadd of two fields and criteria functions compatible?
If not is there any other way i could combat the problem?
regards
Im using Access 2007
I am creating a query to show ongoing tasks in a database.
in the fields I have
Start date (dd/mm/yyyy)
Duration (months)
Basically i want the query to calculate is if start date + Duration is greater than today...
so ive used
Dateadd("m",[duration],[start date])
this is great up to this point - it will show on running the finish date in the format dd/mm/yyyy
but when I add the criteria
>date()
I get the error message "data type mismatch in criteria expression"
I think the criteria is formed correctly - as it works on the start date field independently.
Infact if i put any criteria in the field that the dateadd is present i get the same message.
Basically - are the two conditions - dateadd of two fields and criteria functions compatible?
If not is there any other way i could combat the problem?
regards
Comment