Using "today" in an XLS Query
I am trying to run a query of all employees in our database with a
termination date greater than today or is null. The null part is working fine, but it appears that query doesn't recognize "today()", "date()", "now()" or any of the other million ways I've tried. Can Query use today's date in criteria? If so, how? I would prefer not to have to enter the date using parameter. Thanks! |
Using "today" in an XLS Query
Is it possible that your question relates to Access and not Excel?
The reference to "database" and query cause me to lean towards Access. If so please try the MS Access forum. Dennis JTurner wrote: I am trying to run a query of all employees in our database with a termination date greater than today or is null. The null part is working fine, but it appears that query doesn't recognize "today()", "date()", "now()" or any of the other million ways I've tried. Can Query use today's date in criteria? If so, how? I would prefer not to have to enter the date using parameter. Thanks! |
Using "today" in an XLS Query
Nope...not through Access. I'm querying an Oracle database using Excel via
"Data", "Import External Data", "New Database Query". From there, I use MS Query to view and edit the criteria. "Dennis" wrote: Is it possible that your question relates to Access and not Excel? The reference to "database" and query cause me to lean towards Access. If so please try the MS Access forum. Dennis JTurner wrote: I am trying to run a query of all employees in our database with a termination date greater than today or is null. The null part is working fine, but it appears that query doesn't recognize "today()", "date()", "now()" or any of the other million ways I've tried. Can Query use today's date in criteria? If so, how? I would prefer not to have to enter the date using parameter. Thanks! |
Using "today" in an XLS Query
I believe that you may need to use the function Syntax of MS Query not
the syntax of Excel. Dennis JTurner wrote: Nope...not through Access. I'm querying an Oracle database using Excel via "Data", "Import External Data", "New Database Query". From there, I use MS Query to view and edit the criteria. "Dennis" wrote: Is it possible that your question relates to Access and not Excel? The reference to "database" and query cause me to lean towards Access. If so please try the MS Access forum. Dennis JTurner wrote: I am trying to run a query of all employees in our database with a termination date greater than today or is null. The null part is working fine, but it appears that query doesn't recognize "today()", "date()", "now()" or any of the other million ways I've tried. Can Query use today's date in criteria? If so, how? I would prefer not to have to enter the date using parameter. Thanks! |
All times are GMT +1. The time now is 02:35 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com