Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Beginner 5    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Mistake Access 2019 Date 7:56
Vassili Heintz 
     
36 days ago
Hello,

now we have to writre the query like Like "*2002*" instead of Like "*/2002" in access 2019
Richard Rost  @Reply  
          
35 days ago
I don't think this is an Access 2019 change. LIKE hasn't changed.

What's probably happening is that you're comparing text versus actual Date/Time values, and possibly regional formatting.

If the field is a true Date/Time field, then LIKE isn't really the best way to filter it. You should use something like:

Year([YourDateField]) = 2002

or a proper date range:

[YourDateField] Between #1/1/2002# And #12/31/2002#

The reason Like "*2002*" works is because Access is implicitly converting the date to text behind the scenes, and the format of that text depends on regional settings. So on one system you might see mm/dd/yyyy, on another dd/mm/yyyy, etc.

So it's not that Access changed the syntax. It's that using LIKE on dates depends on how Access is formatting the date as text, which can vary.

Bottom line: avoid LIKE for dates whenever possible and use proper date comparisons instead.

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

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: 4/30/2026 4:17:48 PM. PLT: 1s