Solved

Access Expression - between two dates

Posted on 2013-11-20
3
828 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 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