Query Current Date

Carrie

Active Member
Joined
Nov 20, 2002
Messages
418
How do I get the query to always pull up the current date?

The help button says to put Date() in the criteria line but that doesn't work.
 
Carrie

Did you check to make sure the data type of the field was a Date Field????? Very Important

Go to the table, go to design view. Next to the Date field, does it say Date/Time?
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Ok. Let me tell you what I am doing because now it is crashing on me.

I am right mouse clicking on Field: OpenDate. I go to zoom and type...DateValue([OpenDate]).

Then I go to criteria and type...Date().

Then I run the query and it freezes and comes up not responding.

What is it that I am doing wrong. I am definately going to take a night class or something in access.

I really appreciate all of y'alls patients and help.
 
Upvote 0
Sounds like you did what you were suppose to.

Did you check the Data Type? Did it say Date or Text???
 
Upvote 0
I'm stupped.

If it is already in a date format then it should work just fine by ONLY adding DATE() in the criteria.

I tried it in a query I'm working on and it worked fine. I don't know what else could be causing your problem.
 
Upvote 0
I don't want to give just yet, why dont' you try the following just to make sure everything is set up properly.

In the criteria add the following:
#12/23/02#
Then run the query, this should get you the data with todays current date.
 
Upvote 0
OK, I don't know why the Date() function does not work, but in the mean time you can add the following pop up window.

Just add:
=[Enter Date]
In the criteria, a window will pop up and you manually will need to enter the date, in the following format 12/23/02.

This is a temporary solution, till the Date() delima is figured out. Maybe someone else can recommend why the function is not working.
 
Upvote 0

Forum statistics

Threads
1,224,872
Messages
6,181,500
Members
453,047
Latest member
charlie_odd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top