Solved

Access Expression - between two dates

Posted on 2013-11-20
3
707 Views
Last Modified: 2013-11-20
Will my expression at the bottom work?  
I am concerned that I need some date operator or function before each of the two dates.
Thank you.

Tom


[ Customer]![Type]="MassDiscount" And [Transaction Table]![Date] Between "10/01/2008" And "09/30/2011"
0
Comment
Question by:ThomasJue
3 Comments
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 300 total points
Comment Utility
You should use the date delimiter of # like this:

[ Customer]![Type]="MassDiscount" And [Transaction Table]![Date] Between #10/01/2008# And $09/30/2011#

Assuming that  [Transaction Table]![Date]  is a date/time data type
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 200 total points
Comment Utility
yes you need the "#" as wrapper

[Customer]![Type]="MassDiscount" And [Transaction Table]![Date] Between #10/01/2008# And #09/30/2011#
0
 

Author Closing Comment

by:ThomasJue
Comment Utility
Both answers excellent.  Thank you.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now