Results 1 to 2 of 2
  1. #1
    John Donovan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2010
    Posts
    7

    Create a Query where in this month all birthday anniversaries in next month are reported

    My table (tblClients) includes fields [Client Name], Date of birth [DOB].
    I wish to contact my clients each year on their birthday anniversary.
    I wish to create a report approx. middle of each month of all clients whose birthday anniversaries, say [Anniv], will occur for the full next month.
    Example: Mid February this month (say 18th February 2015 which allows me time to analyse March 2015) the report will display all March 2015 birthday anniversaries.
    The headings on the report will be [Client Name], [DOB], and presumably an Expression in a third field of a Query.
    I presume the Expression will probably include DateAdd() and "m" (for month) but this is where I cannot get the report to work.
    All March 2015 (or any other month throughout the year) anniversaries, will display all clients for that month displayed on the report,
    BUT if there are no anniversaries, can the report state something like "There are no birthday anniversaries this month"


    In the Report Header, (in this example) display "Birthday Anniversary Report for the month of March 2015"
    I would like the answer in a Query structure as I am very weak in VBA, but it would also be nice in that style so I can "digest" it for greater knowledge
    Thanks in advance

    John D

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    To get a list of Clients with Birthdays in the next month
    If run in Feb will get clients with Birthdate in March
    Code:
    SELECT * FROM tblClients
    WHERE Month([DATE of Birth]) =Month(Date()) +1
    Last edited by orange; 02-18-2015 at 08:30 AM. Reason: spelling

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

Similar Threads

  1. Replies: 3
    Last Post: 12-29-2014, 10:14 AM
  2. Replies: 5
    Last Post: 06-17-2014, 12:11 AM
  3. Replies: 6
    Last Post: 05-05-2014, 10:51 PM
  4. Replies: 4
    Last Post: 05-26-2013, 03:28 PM
  5. Month and Day only not Year to create query
    By ssalem in forum Queries
    Replies: 3
    Last Post: 02-28-2013, 02:37 PM

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