The roots of education are bitter,
but the fruit is sweet.
-Aristotle
 
Home   News   Courses   Seminars   Templates   Help   TechHelp   Forums   Order   Contact   Logon  
 
Home > TechHelp > Directory > Access > Search Dates
 
Search Dates, Between is Wrong
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   28 days ago

Search Dates. Query Criteria Doesn't Work. BETWEEN Wrong!


 S  M  L  XL  FS  

In this Microsoft Access tutorial, I will teach you how search for records such as orders between two dates. Then, I'll show you what problem occurs if you also have TIMES in your order date field and your queries aren't returning all of the records.

Jorge from Grand Forks, ND (a Silver Member) asks: I have an OrderDate field in my order table. I'm using the Now() function to set the default order date so that I don't have to type it in every time I create a new order. The problem is, whenever I try to run a query showing all of my orders between two dates, the orders on the LAST date don't show up! This happens whether I use the BETWEEN keyword or inequalities. What am I doing wrong. 

BONUS FOR CHANNEL MEMBERS:
Silver Members and up get access to an EXTENDED CUT of this video which covers additional examples. That video will show you how to create a second calculated field in your query that represents ONLY the date portion. You can then use this for your calculations. Then I'll show you how to use an update query to remove that time portion from your order date field permanently, if you choose.

MEMBERS ONLY VIDEO: 
https://youtu.be/ATPHIna7aCk

BECOME A MEMBER:
https://youtube.com/channel/UCl7-jJie4ifOVK87FINIuDg/join

OTHER SEARCH VIDEOS:
Find Between Dates: https://youtu.be/CTiA_4Me0cI
Search Combo Box: https://youtu.be/5wp8wLu0rXI
Search w Text and List Box: https://youtu.be/HSnHGQeX9so
Multi-Field Search Form: https://youtu.be/CTiA_4Me0cI

LINKS TO TOPICS MENTIONED:
Query Criteria: https://youtu.be/NYM1dXIynz8
Parameter Queries: https://youtu.be/nxBUQ_ZuGtI
CDate Function: https://599cd.com/cdate
Update Query: https://youtu.be/ZiKmwiMlJkA

FEATURED COURSES ON SEARCHING:
Search Seminar: http://599cd.com/XTPMHO
Access Beginner 5: https://599cd.com/XW1RK
Date Time Seminar: https://599cd.com/XYGX1

ADDITIONAL RESOURCES:
FREE Access Level 1: https://599cd.com/Free1
FREE Customer Template Database: https://599cd.com/XCDT
$1 Access Level 2: https://599cd.com/1Dollar
Your Questions Answered: https://599cd.com/TechHelp
Learning Connection 50% OFF: https://599cd.com/Connection
Survey: https://599cd.com/survey
Richard's Blog: https://599cd.com/blog
Access Forum: https://599cd.com/AccessForum
Twitter: https://twitter.com/LearningAccess
https://en.wikipedia.org/wiki/Microsoft_Access
https://products.office.com/en-us/access
https://microsoft.com/en-us/microsoft-365/blog/access/
Email Me: amicron@gmail.com

KEYWORDS:
microsoft access, ms access, #msaccess, search query in access, microsoft access search query, dates as criteria, date criteria doesn't work, specifying a range of dates or times, start date and end date, how to work with dates and times, date and now functions, query criteria giving wrong results

QUESTIONS:
Please feel free to post your questions or comments below. Thanks.

 

Post a New Comment or Question
 
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.
 
Subscribe
 
 
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search The Site
Waiting List
Production Schedule
Code Vault
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

YouTube Channel    LinkedIn

Blog RSS Feed   
Keywords: TechHelp Access search query in access, microsoft access search query, dates as criteria, date criteria doesn't work, specifying a range of dates or times, start date and end date, how to work with dates and times, date and now functions, query criteria g  PermaLink