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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
"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 | |
|
|
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 |