Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Developers    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Date Format
Alan Higgins 
     
2 years ago
Is it possible to only show Month/Year in a query for date? I can extract the month and year in separate fields using Datepart function however unsuccessful in displaying only month and year together in one field.
Adam Schwanz  @Reply  
           
2 years ago
You can make expressions in a query
MyMonth: Month(DateField)
MyYear: Year(DateField)

Then you can either append them as a text, such as
MyCombinedDate: MyMonth & "-" & MyYear

Or if you need it to be a date field for some reason you can DateSerial/Format the appearance, maybe something like this
MyCombinedDate: Format(DateSerial(MyYear,MyMonth,1),"mm/yyyy")
Alan Higgins OP  @Reply  
     
2 years ago
Thank you for your help, I figured out why it wasn't working, I am using the Total function for First and Last Field. Once i turned off the total function the date expressions work fine. I need the total function so I don't see how i can make this work.
Adam Schwanz  @Reply  
           
2 years ago
Make your totals query, and then make a second query based on that totals query with the date function. See if that lets you get the results you want.

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

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: 8/7/2026 5:08:51 PM. PLT: 0s