Solved

Microsoft Access query help

Posted on 2014-04-02
3
272 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:jrsitman
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
dustock earned 400 total points
Comment Utility
change <4 to <=4
0
 

Author Closing Comment

by:jrsitman
Comment Utility
Thanks
0
 
LVL 9

Expert Comment

by:dustock
Comment Utility
No problem
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

763 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

8 Experts available now in Live!

Get 1:1 Help Now