Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
Microsoft Access Expert 28
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   7 years ago

Microsoft Access Expert 28Access Expert 28 is Part 4 of our Comprehensive Guide to Access Functions. Today's class is part 2 of our focus on Date/Time Functions. You will learn about many new functions including WeekDay, DateAdd, DateDiff, DateSerial, DatePart, and more. Topics include:

- Date/Time Functions Part 2
- Break Apart Dates with Day, Month, Year
- Calculate Day of the Week with WeekDay
- DateAdd - What's 2 months from today?
- DateDiff - How long until loan paid?
- DatePart - Is order from last quarter?
- DateSerial - Find last day of next month
- Display Ordinals: 1st, 2nd, 3rd, etc.
- Calculate someone's exact age
- List of birthdays for next month

Click here for more information on Access Expert Level 28, including a course outline, sample videos, and more. This course was recorded using Access 2013, but most of the functions covered are valid for all versions of Access. This class follows Expert Level 27. The next class in the series is Expert Level 29.

DateTime Concatenation Upload Images   Link  
Austin Ritner 
2 years ago
Could I concatenate a field consisting of how many days have passed since January 1st of that year, the current date/time and autonumber?

For example: 1/5/20 at 12:34:56 PM, and autonumber 12

Could I get that to display as 000412345612?
Richard Rost
2 years ago
Sure. I don't see why not. Use DateSerial to put together 1/1 of the current year. Use DateDiff to determine how many days from then until now. Use Format to assemble the current date/time as you want it. Then smash em all together. :)
Austin Ritner
2 years ago
I'll give it a try later and let you know.
Richard Rost
2 years ago
Remember, you can do it all in one statement, but it's easier if you break it down into steps.
Austin Ritner
2 years ago
Gotcha. Haven't quite learned about dateserial yet so that will be interesting. Formatting it should be either in the format tab or maybe an input mask with all numbers?

I'm thinking this could be an alternative to an OrderID and would probably only show on an invoice or paid orders.
Richard Rost
2 years ago
Just use the Format function. If you finish this entire class and still have questions, let me know. DateSerial is a great function.
Austin Ritner
2 years ago
Finally had some time to really work on this. It was super easy. The only thing I had an issue with at first was formatting the time because it was displaying the AM/PM, but as soon as I put Format([Time], "hhnnss") into the control source tab, it worked flawlessly.

So now it displays as days passed since 1/1, mmddyy, hhnnss, and autonumber (293)-(090920)(093342)(1)
Richard Rost
2 years ago
Add a Reply

Show All Comments

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

1/28/2022Duplicate Record
1/28/2022ABCD Core Part 7
1/27/2022Work Days
1/27/2022MyNetWorkDays (Free)
1/27/2022Access Developer 35
1/26/2022Yes/No Fields
1/22/2022Next Appointment
1/18/2022Access B2 Upgrade
1/17/2022Access Beginner 2 Links

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: access expert 28 date time functions  Page Tag: whatsnew  PermaLink