Display date as MM/DD in reports

papabill

New Member
Joined
Nov 23, 2012
Messages
21
I have a simple database with a membership list that has birth dates and anniversary dates entered as MM/DD/YYYY, but in the report I want them to display as MM/DD. (Some of our members don't want their ages told <g>)

I have searched for the last couple of days, and can find nothing.

(Actually, I'm not quite sure what phrase I'm supposed to be searching for.)


Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
=TEXT(A1,"mm/dd")
Not quite. That is an Excel solution. This is an Access question in the Access Forum.

Try:
Code:
Format([MyDateField],"mm/dd")
 
Upvote 0
Is your Report based directly on the Table, or on a Query?
My preference is to base all Reports and Forms on Queries instead of Tables. Then you can do most of your calculations in the Query instead of directly on the Report itself (I think it is easier to maintain and make changes if done in a Query).

So this would be a calculated field in your Query:
Code:
BirthDate: [COLOR=#333333]Format([MyBirthDateField],"mm/dd")[/COLOR]
Then, you would just put this field on your Report (note, if your Report is based on your Table, you will need to change the Record Source property of your Report to use your new Query instead of your Table).
 
Upvote 0
Thanks, I finally got "the little gray cells" working and figured it out. Appreciate the help.

NOW, if I had answers to the other 1000 questions I need answered, I'd be great <g>
 
Upvote 0
I've gotten some tips about using SQL, and would love to know how to adapt this to the SQL query.

Here is what I have now in my table:

FName
LName
Birthday

I'd like to show another field as BDay in the m/d format. How would I do that in SQL?

Thanks
 
Last edited:
Upvote 0
What version of SQL Server are you doing this on?
 
Upvote 0
I thought you said you were trying to do this in SQL. I am guessing now you mean "SQL View in Access" (SQL and Access are actually two different database programs, with slightly different syntax).

SQL View in Access just another way to view the query code. So it would be very similar to the answer to the previous question. In SQL View, it would just look like:
Code:
[COLOR=#333333]Format([Birthday],"m/d")[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,210
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top