Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 59
Default 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!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default 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!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 59
Default 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!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems importing from an Access query Mike Excel Discussion (Misc queries) 0 June 20th 06 09:35 PM
changing query source [email protected] Excel Worksheet Functions 2 March 21st 06 08:55 PM
enable automatic refresh Vass Excel Worksheet Functions 2 March 11th 06 04:36 AM
AHHH! Again JAA149 Excel Discussion (Misc queries) 0 October 31st 05 11:36 AM
AHHHH-Get Data from Multiple Excel workbooks JAA149 Excel Discussion (Misc queries) 5 October 30th 05 05:19 PM


All times are GMT +1. The time now is 02:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"