Solved

Microsoft Access query help

Posted on 2014-04-02
3
276 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 400 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

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…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

777 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