There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus batch bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop lcd malware memory monitor motherboard mouse network printer problem ram registry router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: Access Query for Birthday coming in the next 30 days

Reply  
Thread Tools
gublerm's Avatar
Junior Member with 1 posts.
 
Join Date: Oct 2009
Experience: Intermediate
22-Oct-2009, 07:43 AM #1
Solved: Access Query for Birthday coming in the next 30 days
I was looking at the post:

Solved: Access Query Using Birthdate
http://forums.techguy.org/business-a...birthdate.html

Unfortunately the thread is closed so I can't post my solution there.

The problem was not solved in the way asked by StuartM, having myself the same problem, wanting to have a list of the upcoming birthdays in 30 days (and display them chronologically), I have found my own solution:

In a Query:

Field:
Code:
Expr1: DateValue(Format([Birthdate];"dd mm"))


Sort: of course ascending

Criteria:
Code:
Between Date() and Date()+30
The trick is to consider yust the month and the day first, and to convert it later as a DateValue, so that the year becomes the current year not the year of birth.

I hope this will be useful to semeone.
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
22-Oct-2009, 07:59 AM #2
The problem was solved for StuartM in the Database that I posted in Post #7, but he did not understand what it was doing and he needed to be able to explain it for his School project.
Reply

Tags
access, birthdate, birthday

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:45 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.