A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Running a Query Date



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2007, 05:29 PM posted to microsoft.public.access.queries
Kat
external usenet poster
 
Posts: 268
Default Running a Query Date

There is a field in a table that give a date time stamp. I want to be able
to do a query on just the date part of the field. Is there a way to extract
just the date and not the time. Or can you separte the two by using a query
into two seprate fields.

The field is called "Status Change"
The format is "Short Date" (only to display
This is what is in the field: 5/9/2007 8:25:30 AM

Just to give you background. I am running the report from a call center
program. Then importing the data for the day into access to run reports. So
it gives me the field in date time. You can't seprate it in the call center
program.
  #2  
Old May 18th, 2007, 05:34 PM posted to microsoft.public.access.queries
Dale Fye
external usenet poster
 
Posts: 2,651
Default Running a Query Date

Kat,

Use the DateValue( ) function. There is also a TimeValue( ) function if you
want to strip out just the time.

HTH
Dale

--
Email address is not valid.
Please reply to newsgroup only.


"Kat" wrote:

There is a field in a table that give a date time stamp. I want to be able
to do a query on just the date part of the field. Is there a way to extract
just the date and not the time. Or can you separte the two by using a query
into two seprate fields.

The field is called "Status Change"
The format is "Short Date" (only to display
This is what is in the field: 5/9/2007 8:25:30 AM

Just to give you background. I am running the report from a call center
program. Then importing the data for the day into access to run reports. So
it gives me the field in date time. You can't seprate it in the call center
program.

  #3  
Old May 18th, 2007, 05:50 PM posted to microsoft.public.access.queries
Kat
external usenet poster
 
Posts: 268
Default Running a Query Date

I have never done that. Can you give me an example?

"Dale Fye" wrote:

Kat,

Use the DateValue( ) function. There is also a TimeValue( ) function if you
want to strip out just the time.

HTH
Dale

--
Email address is not valid.
Please reply to newsgroup only.


"Kat" wrote:

There is a field in a table that give a date time stamp. I want to be able
to do a query on just the date part of the field. Is there a way to extract
just the date and not the time. Or can you separte the two by using a query
into two seprate fields.

The field is called "Status Change"
The format is "Short Date" (only to display
This is what is in the field: 5/9/2007 8:25:30 AM

Just to give you background. I am running the report from a call center
program. Then importing the data for the day into access to run reports. So
it gives me the field in date time. You can't seprate it in the call center
program.

  #4  
Old May 18th, 2007, 08:25 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 2,364
Default Running a Query Date

In the query grid view:


Field: JustTheDate: DateValue([Status Change])



'================================================= ===
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'================================================= ===


Kat wrote:
I have never done that. Can you give me an example?

"Dale Fye" wrote:

Kat,

Use the DateValue( ) function. There is also a TimeValue( ) function if you
want to strip out just the time.

HTH
Dale

--
Email address is not valid.
Please reply to newsgroup only.


"Kat" wrote:

There is a field in a table that give a date time stamp. I want to be able
to do a query on just the date part of the field. Is there a way to extract
just the date and not the time. Or can you separte the two by using a query
into two seprate fields.

The field is called "Status Change"
The format is "Short Date" (only to display
This is what is in the field: 5/9/2007 8:25:30 AM

Just to give you background. I am running the report from a call center
program. Then importing the data for the day into access to run reports. So
it gives me the field in date time. You can't seprate it in the call center
program.

  #5  
Old May 18th, 2007, 08:28 PM posted to microsoft.public.access.queries
Dale Fye
external usenet poster
 
Posts: 2,651
Default Running a Query Date

Kat,

Per your request.

Select [Status Change], DateValue([Status Change]) as JustTheDate
From yourTable

Or, to select all of the records that were entered in yourTable today,

Select * FROM yourTable
WHERE DateValue([Status Change]) = Date()

HTH
--
Email address is not valid.
Please reply to newsgroup only.


"Kat" wrote:

I have never done that. Can you give me an example?

"Dale Fye" wrote:

Kat,

Use the DateValue( ) function. There is also a TimeValue( ) function if you
want to strip out just the time.

HTH
Dale

--
Email address is not valid.
Please reply to newsgroup only.


"Kat" wrote:

There is a field in a table that give a date time stamp. I want to be able
to do a query on just the date part of the field. Is there a way to extract
just the date and not the time. Or can you separte the two by using a query
into two seprate fields.

The field is called "Status Change"
The format is "Short Date" (only to display
This is what is in the field: 5/9/2007 8:25:30 AM

Just to give you background. I am running the report from a call center
program. Then importing the data for the day into access to run reports. So
it gives me the field in date time. You can't seprate it in the call center
program.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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