Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time Still Showing up in Date Field 2

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I have a few date fields that i formated in the table with short date and a input mask...

how come when i run a query the time still shows up??

i tryed putting the Like * & [enter Date] & * and it still wont pull up any dates?...

for some reason all my queries are like that...

is there a way around this?

I dont care if the time is still there..I just need to be able to pull these queries up by date..

can I create an update query that will get rid of the time???

Thanks

DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 

Use # to idntify the parameter as a date?

= "#" & [Enter Date] & "#" Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time.
NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
 
Extract the date value of the field by using the DateValue() function in a new column of your query, place the criteria in that new column

DateOnly: DateValue([MyDateTimeField])

If you want to update all your values and strip the time you can use the DateValue function as well. In the Update To place this:

DateValue([MyDateTimeField])

HTH Joe Miller
joe.miller@flotech.net
 
Thanks to both of you...I guess this happens when you use date = now()..

Thats the only thing i can think of

again thanks DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
That's exactly what happens when you use now! ;-) Joe Miller
joe.miller@flotech.net
 
= "#" & [Enter Date] & "#" when i use that command it gives me an error saying the expression is to complex or something like that..

DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top