Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Microsoft Access query help

Posted on 2014-04-02
3
Medium Priority
?
305 Views
Last Modified: 2014-04-02
How do I change this query to give me animals adopted whose age is 4 months or less.  currently is only list those less than 4 months old


SELECT Count(SoftSlips.SoftSlip) AS CountOfSoftSlip
FROM Species INNER JOIN (SoftSlips INNER JOIN Adoptions ON SoftSlips.SoftSlip = Adoptions.SoftSlip) ON Species.SpeciesID = SoftSlips.SpeciesID
WHERE (((Species.Species)="dog") AND ((Adoptions.AdoptionDate) Between [forms]![frmSwitchboard]![txtStartDate] And [forms]![frmSwitchboard]![txtEndDate]) AND ((DateDiff("m",[DOB],[AdoptionDate]))<4) AND ((SoftSlips.Location)="long beach"));
0
Comment
Question by:J.R. Sitman
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
dustock earned 1600 total points
ID: 39972641
change <4 to <=4
0
 

Author Closing Comment

by:J.R. Sitman
ID: 39972785
Thanks
0
 
LVL 9

Expert Comment

by:dustock
ID: 39972841
No problem
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

926 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