Calculating days between today and a date field in an Access table -


hi i'm trying calculate number of days between date field in current access table , todays date. here have:

days on report: datediff("d",[reportdate],[date()]) 

the problem having when run query pop box asking "date()"

i trying avoid adding column "today" , doing days between column , reportdate column if possible.

reportdate column existing in table.
days on report field/column creating.

when not enclosed in square brackets, date() function call returns current system date. putting square brackets around turns field name. since there no field name, query treats parameter , prompts value.

solution: rid of square brackets.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -