Re: If this or that??
- From: "Michael" <michaelNOSPAM@xxxxxxxxxxxxx>
- Date: Wed, 28 Dec 2005 16:15:32 +0100
Yes thank you very much.. I totally forgot about and how to use "or" thanks
for taking the time to work this out for me.
Michael
"John Spencer" <spencer4@xxxxxxxxxxx> ha scritto nel messaggio
news:43B290A0.72E7BCC5@xxxxxxxxxxxxxx
> This will show records where any one of the fields is true (checked). Is
> this
> what you want?
>
> SELECT [Registro Entrate].Fornitore, [Registro Entrate].Del, [Registro
> Entrate].Prodotto, [Registro Entrate].RintracciabilitàLotto, [Registro
> Entrate].Marciume, [Registro Entrate].PresenzaDiErbeInfestanti, [Registro
> Entrate].AnomalieSulleFoglie, [Registro Entrate].Peronospora, [Registro
> Entrate].AnomalieSulleFogliesesiquali
> FROM [Registro Entrate]
> WHERE [Registro Entrate].Marciume = True
> or [Registro Entrate].PresenzaDiErbeInfestanti = True
> or [Registro Entrate].AnomalieSulleFoglie = True
> or [Registro Entrate].Peronospora = True
> ORDER BY [Registro Entrate].Del;
>
> Michael wrote:
>>
>> I need to make a query that says if any of the following fields have a
>> value
>> list them. Below is the sql without the filter.
>>
>> I need to know if any of the following feilds (check boxes) are checked ,
>> show the record in the query
>>
>> [Registro Entrate].Marciume, [Registro Entrate].PresenzaDiErbeInfestanti,
>> [Registro Entrate].AnomalieSulleFoglie, [Registro Entrate].Peronospora,
>>
>> thank you
>> Michael
>>
>> SELECT [Registro Entrate].Fornitore, [Registro Entrate].Del, [Registro
>> Entrate].Prodotto, [Registro Entrate].RintracciabilitàLotto, [Registro
>> Entrate].Marciume, [Registro Entrate].PresenzaDiErbeInfestanti, [Registro
>> Entrate].AnomalieSulleFoglie, [Registro Entrate].Peronospora, [Registro
>> Entrate].AnomalieSulleFogliesesiquali
>> FROM [Registro Entrate]
>> ORDER BY [Registro Entrate].Del;
.
- Follow-Ups:
- Re: If this or that??
- From: John Spencer
- Re: If this or that??
- References:
- If this or that??
- From: Michael
- Re: If this or that??
- From: John Spencer
- If this or that??
- Prev by Date: Re: Editing Access Data
- Next by Date: Re: Control Source
- Previous by thread: Re: If this or that??
- Next by thread: Re: If this or that??
- Index(es):
Relevant Pages
|