Computer Learning Zone CLZ Access Excel Word Windows

The method we used to descend from orbit to the surface of an alien world worked, but it would have been far more efficient and far less traumatic if we could just beam down.

-Neil Armstrong, Star Trek Convention 2004
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Microsoft Access 321    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Generation Lookup
Richard Lanoue 
    
11 years ago
Hers is a project I've been working on. When I enter a Date Of Birth, [DOB], I want to have it select, from a dropdown menu, A Generation.  Example  client is born in 1972, then the selection on the form will select "Gen X"... A client is DOB is 1982...after update it selects, "Millenial"... etc...

I tried to use an update query but it doesn't seem to work.  with record sets...do I send a date and get back an ID number based on Year(DOB)...
Am I Going in the right direction?  If the DOB field is null I want it to select an ID 7 which is on the dropdown form "Unknown"...

Is there a better way?


Reply from Alex Hedley:

You could create a Function in VBA that takes an Year and returns a value.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft Access 321.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 6:06:21 PM. PLT: 0s