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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -