Search Dates. Query Criteria Doesn't Work. BETWEEN Wrong!
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:
BECOME A MEMBER:
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
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
Richard's Blog: https://599cd.com/blog
Access Forum: https://599cd.com/AccessForum
Email Me: email@example.com
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
Please feel free to post your questions or comments below. Thanks.