Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Access Expression - between two dates

Posted on 2013-11-20
3
Medium Priority
?
1,094 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 1200 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 800 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
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 …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

824 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