PC Review


Reply
Thread Tools Rate Thread

Date Timestamp

 
 
Matt
Guest
Posts: n/a
 
      20th May 2009
I'm having problems trying to pull a set of data based off the date. This
date field has a date and timestamp. (Example: 5/18/2009 6:03:49 PM)

What i'm trying to do is pull all records <=#5/18/2009#. Since it has a
timestamp, I don't get all the records with 5/18/2009 in the date field.

Is there a way I can convert the dates to not include the timestamp and
still pull everything that is <=#5/18/2009#?

I'm hoping to do this without bringing the data into a local table and
changing the field format to short date. Reason being that the table I'm
pulling from is quite large.

Thanks in advance for your help.
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      20th May 2009
On Tue, 19 May 2009 17:33:01 -0700, Matt <(E-Mail Removed)>
wrote:

>I'm having problems trying to pull a set of data based off the date. This
>date field has a date and timestamp. (Example: 5/18/2009 6:03:49 PM)
>
>What i'm trying to do is pull all records <=#5/18/2009#. Since it has a
>timestamp, I don't get all the records with 5/18/2009 in the date field.
>
>Is there a way I can convert the dates to not include the timestamp and
>still pull everything that is <=#5/18/2009#?
>
>I'm hoping to do this without bringing the data into a local table and
>changing the field format to short date. Reason being that the table I'm
>pulling from is quite large.
>
>Thanks in advance for your help.


Try a parameter query and include the entire day in the parameter:

< DateAdd("d", 1, [Enter date:])

If you enter 5/18 at the prompt, this expression will find all records before
midnight 5/19 - i.e. up through 11:59:59.99999999999 on the 18th.
--

John W. Vinson [MVP]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Timestamp from date Smythe32@aol.com Microsoft Excel Programming 3 7th Aug 2006 08:43 AM
date without timestamp r.vasikaran Microsoft Excel Discussion 2 13th May 2006 12:07 PM
Date - Date, TimeStamp - Time, Joined, BUT NOT WORKING =?Utf-8?B?UmljaGFyZA==?= Microsoft Access Queries 0 22nd Jun 2005 01:33 PM
Date and Timestamp in Filename Emily Microsoft Excel Misc 6 30th Jan 2004 07:11 AM
Date from Timestamp Haigy Microsoft Access Form Coding 1 26th Aug 2003 01:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:47 AM.