Solved

Microsoft Access query help

Posted on 2014-07-25
4
305 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

705 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

18 Experts available now in Live!

Get 1:1 Help Now