Results 1 to 8 of 8
  1. #1
    Palomino33 is offline Access or Gardening?
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    South Georgia
    Posts
    36

    Just want a plain Birthday Report


    Hi, I've read through quite a few pages of forums and havn't see this question yet. I know it's easy for you experts, maybe someone can give me this.

    I have:
    1. A table of 100 people. Just three fields...Name, Birthdate, Active (which is a yes/no field).
    2. The Birthdate field is formatted for date in the table.

    I want:
    To Click on my query and it ask me: "Enter the representing number for the month you want to see".... I then want to put in a number (1 through 12)....say I put in 5, I want to get back all of my May birthdays.

    I've tried this several times over the years, and always gave up, and now have a real need for this. I know I am making it harder than it is....I just can not figure it out.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Create a field for the birth month in query by expression.

    BirthMonth: Month(Birthdate)

    Now put the parameter prompt in the Criteria row for this constructed field.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    To add further to June's reply, the SQL would look something like:

    Code:
    SELECT YOURTABLE.Name, YOURTABLE.Birthdate, YOURTABLE.Active, BirthMonth: Month(Birthdate) 
    FROM YOURTABLE  
    WHERE Month([Birthdate]) = [Enter a number Between 1 and 12] 
    ORDER BY YOURTABLE.Birthdate;
    Change the blue text to your table name.

    Note that "Name" is a reserved word in Access and shouldn't be used as object names.

  4. #4
    Palomino33 is offline Access or Gardening?
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    South Georgia
    Posts
    36
    Hey guys, just found your responses. Thank you so much, will try this as soon as I get home from work today

  5. #5
    Palomino33 is offline Access or Gardening?
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    South Georgia
    Posts
    36
    Guys, that is too easy! I knew I was overthinking it Thank you thank you thank you!!!!! and Thank you again!!!!!

  6. #6
    Palomino33 is offline Access or Gardening?
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    South Georgia
    Posts
    36
    One more itsy bitsy thing....Now in my report...how can I convert a #1 to Jan, and 2 to Feb, and so on?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Use the original birthdate field. Do an expression in query or in textbox on report.

    BirthMonthText: Format([birthdate],"mmm")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    Palomino33 is offline Access or Gardening?
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    South Georgia
    Posts
    36
    Works perfectly!!!!!!!! Thank you!! You are too sweet! Hugs from Omega Georgia!!!!!!!!!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Calculate age based on birthday
    By MediaCo in forum Access
    Replies: 10
    Last Post: 10-14-2014, 01:00 PM
  2. Birthday Expression
    By cassidym in forum Queries
    Replies: 7
    Last Post: 03-17-2011, 05:52 AM
  3. Birthday format
    By endri81 in forum Forms
    Replies: 1
    Last Post: 02-12-2011, 04:07 PM
  4. Calendar Birthday Question
    By kirklandwater123 in forum Access
    Replies: 4
    Last Post: 10-29-2010, 11:20 PM
  5. Convert rtf to plain text
    By techneophyte in forum Programming
    Replies: 0
    Last Post: 09-08-2010, 11:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums