Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Microsoft Access query help

Posted on 2014-04-02
3
Medium Priority
?
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

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