By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,960 Members | 1,009 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,960 IT Pros & Developers. It's quick & easy.

Urgent Access Question

P: 1
Hi Every Body
I have an Access Table with date/time field and I'm Trying to create a criteria to get the Sales of the last 6 months .
Could u please tell me how can I do it

Thanks
May 20 '07 #1
Share this Question
Share on Google+
1 Reply


ADezii
Expert 5K+
P: 8,619
Hi Every Body
I have an Access Table with date/time field and I'm Trying to create a criteria to get the Sales of the last 6 months .
Could u please tell me how can I do it

Thanks
Assumptions:
  1. Table Name is tblSalesData
  2. Date Field Name is [Sales Date]
    Expand|Select|Wrap|Line Numbers
    1. SELECT tblSalesData.[Sales Date]
    2. FROM tblSalesData
    3. WHERE DateDiff("m",[Sales Date],Now())<=6;
May 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.