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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

date



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 11:39 PM
Hans
external usenet poster
 
Posts: n/a
Default date

I have a DB field of type Date (dd-mm-yyyy)
The contents of this field is the birthday
To make a birthday-calendar I would like to know how to do that.
The output should be something like:

January
1 mr Johnson
17 mrs Williams

February
2 mr Brooks
24 mr Simson
etc

What should be the contents of the criteria in a query

Can someone help!
Thanks,
Hans


  #2  
Old June 9th, 2004, 12:10 AM
John Vinson
external usenet poster
 
Posts: n/a
Default date

On Wed, 9 Jun 2004 00:39:41 +0200, "Hans" wrote:

I have a DB field of type Date (dd-mm-yyyy)
The contents of this field is the birthday
To make a birthday-calendar I would like to know how to do that.
The output should be something like:

January
1 mr Johnson
17 mrs Williams

February
2 mr Brooks
24 mr Simson
etc

What should be the contents of the criteria in a query

Can someone help!


Hm. I did, just a couple of days ago - same example dates. Don't know
if it was for you but I remember the 1 mr Johnson line!

Create a Query with four fields:

SELECT Month([birthdate]) AS MonthNo,
Format([birthdate], "mmmm") As MonthName,
Day([birthdate]) As DayNo,
Title, LastName
FROM yourtable;

Then create a Report based on this table. Use the "Sorting and
Grouping" dialog of the Report to group by MonthNo; display MonthName
in the monthno header; and sort by DayNo within each month.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 




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 09:15 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.