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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access 2000 - Extracting DAY filed From Date



 
 
Thread Tools Display Modes
  #1  
Old October 2nd, 2005, 04:22 AM
Larry H
external usenet poster
 
Posts: n/a
Default Access 2000 - Extracting DAY filed From Date

Hi,
I am trying to do a report in Access 2000 in which I need to extract the
DAY number out of a date field that is formatted mm/dd/yyyy. I only want the
DAY since I need to sort the records based on the DAY of the month.

Do I need to do this in a Querie or in the REPORT and if so, please
demonstrate HOW to do this.....
My Table name is Membership Table
My Date Field is named Birth Date

--
Thanks in advance for your help...

Larry H.
  #2  
Old October 2nd, 2005, 04:58 AM
fredg
external usenet poster
 
Posts: n/a
Default

On Sat, 1 Oct 2005 20:22:01 -0700, Larry H wrote:

Hi,
I am trying to do a report in Access 2000 in which I need to extract the
DAY number out of a date field that is formatted mm/dd/yyyy. I only want the
DAY since I need to sort the records based on the DAY of the month.

Do I need to do this in a Querie or in the REPORT and if so, please
demonstrate HOW to do this.....
My Table name is Membership Table
My Date Field is named Birth Date


Here are several ways.
1) In the report, set the Format property of the [Birth Date] control
to:
dd

2) In the report, use an unbound control. set it's control source to:
=Format([Birth Date],"dd")

3) In the report:
=DatePart("d",[Birth Date])


--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old October 2nd, 2005, 10:47 PM
Douglas J. Steele
external usenet poster
 
Posts: n/a
Default

"fredg" wrote in message
...
On Sat, 1 Oct 2005 20:22:01 -0700, Larry H wrote:

Hi,
I am trying to do a report in Access 2000 in which I need to extract the
DAY number out of a date field that is formatted mm/dd/yyyy. I only want
the
DAY since I need to sort the records based on the DAY of the month.

Do I need to do this in a Querie or in the REPORT and if so, please
demonstrate HOW to do this.....
My Table name is Membership Table
My Date Field is named Birth Date


Here are several ways.
1) In the report, set the Format property of the [Birth Date] control
to:
dd

2) In the report, use an unbound control. set it's control source to:
=Format([Birth Date],"dd")

3) In the report:
=DatePart("d",[Birth Date])


4) In the report:

=Day([Birth Date])

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)




 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Query for 'confirmation' rogge Running & Setting Up Queries 8 April 19th, 2005 03:26 PM
REQ: Need Criteria expression that will ask for "from" and "to" dates and then select records that fall within that date span for access 2000 Please...TIA Ralph Malph Running & Setting Up Queries 2 April 18th, 2005 05:21 AM
Access 2000 -vs- Access 2003? Mark General Discussion 5 November 30th, 2004 06:36 AM
DATE SENSITVE IN ACCESS 2000 John Leight General Discussion 2 October 7th, 2004 03:09 PM
Access License In Terminal Server JIM.H. General Discussion 9 July 19th, 2004 12:32 AM


All times are GMT +1. The time now is 12:54 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.