Solved

Microsoft Access query help

Posted on 2014-07-25
4
306 Views
Last Modified: 2014-07-25
I need this query modified to only give me those softslips where the action date is 14 days prior to the availability date.

PARAMETERS [forms]![frmswitchboard]![txtStartDate] DateTime, [forms]![frmswitchboard]![txtEndDate] DateTime; SELECT SoftSlip,  Species.Species,Availability, actiondate, SoftSlips.Location FROM Species INNER JOIN SoftSlips ON Species.SpeciesID = SoftSlips.SpeciesID WHERE (((SoftSlips.ActionDate) Between forms!frmswitchboard!txtStartDate And
forms!frmSwitchboard!txtEndDate) And ((SoftSlips.ImpoundCode) Not In
("ocsd","pcd","ocrd","acord","acosd")))
and location = "South Bay"  AND Availability > ActionDate order by species
0
Comment
Question by:jrsitman
  • 2
  • 2
4 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 400 total points
ID: 40220210
Replace:  AND Availability > ActionDate

With: AND ActionDate  = DateAdd("d", -14, [Availability])
0
 

Author Comment

by:jrsitman
ID: 40220566
perfect.
0
 

Author Closing Comment

by:jrsitman
ID: 40220567
thanks
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 40220757
glad to help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Auto Filter in Combo Box 7 33
SQL profiler equivalent in MS-Access 3 45
Field Size - Double?  Want to display 0 5 31
tabctrl with page click event 9 12
This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

867 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