Solved

Access Expression - between two dates

Posted on 2013-11-20
3
775 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
ID: 39664650
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 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 200 total points
ID: 39664652
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
ID: 39664673
Both answers excellent.  Thank you.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

832 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