Solved

Microsoft Access query help

Posted on 2014-07-25
4
308 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:J.R. Sitman
  • 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:J.R. Sitman
ID: 40220566
perfect.
0
 

Author Closing Comment

by:J.R. Sitman
ID: 40220567
thanks
0
 
LVL 47

Expert Comment

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

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
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…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

776 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