Re: Conditional Query
From: Ken Snell [MVP] (kthsneisllis9_at_ncoomcastt.renaetl)
Date: 01/28/05
- Next message: Brendan Reynolds: "Re: Count occurances of specific character in string"
- Previous message: T Kirtley: "Count occurances of specific character in string"
- In reply to: Steve Freeman, SuperRealtor: "Conditional Query"
- Next in thread: Steve Freeman, SuperRealtor: "Re: Conditional Query"
- Reply: Steve Freeman, SuperRealtor: "Re: Conditional Query"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 28 Jan 2005 15:03:33 -0500
Add a calculated field to your query:
DoDontUse: [YN]=[Y] And (x2/x1)<=0.85
Set the Criteria: cell for this calculated field to True.
--
Ken Snell
<MS ACCESS MVP>
"Steve Freeman, SuperRealtor" <STEVE@COUNTYREALTY.COM> wrote in message
news:aqWdndesHvz2D2fcRVn-sQ@comcast.com...
>I know, aren't they all conditional...
> I want to pull records from a table, and contained in the table are two
> numeric value fields; x1 and x2, and a Yes/No field. YN.
> What I want to do is when YN=yes (or = to a specific state I specify)
> when YN=yes, I want the query to perform the calculation where
> if x2/x1<=0.85, then retrieve the records in the query
> if x2/x1>0.85, then don't retrieve the records for the query.
> I am only interested in those records I've marked with the YN and where
> x2/x1<=0.85
>
> Here is about the best way to describe what I need.
>
> if (YN=Y,((x2/x1)<=0.85, use record, don't use record),nothing)
> I want the query to determine the YN first, then compare the values of x.
>
> Insights always appreciated more than you know!
> -Steve
>
>
- Next message: Brendan Reynolds: "Re: Count occurances of specific character in string"
- Previous message: T Kirtley: "Count occurances of specific character in string"
- In reply to: Steve Freeman, SuperRealtor: "Conditional Query"
- Next in thread: Steve Freeman, SuperRealtor: "Re: Conditional Query"
- Reply: Steve Freeman, SuperRealtor: "Re: Conditional Query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|