Re: "You canceled the previous operation."
- From: "John Spencer (MVP)" <spencer4@xxxxxxxxxxx>
- Date: Sat, 27 Aug 2005 12:03:11 -0400
If you are using the query grid then enter the following all in one criteria
cell. Access will rearrange this when you save and close the query.
Field:[motcode]
Criteria: [Forms]![Case-Based Query]![motcode] OR
[Forms]![Case-BasedQuery]![motcode] is Null
If you aren't using the query grid to build the query then
WHERE (MotCode = [Forms]![Case-Based Query]![motcode] OR
[Forms]![Case-BasedQuery]![motcode] is Null) ...
"Steven L via AccessMonster.com" wrote:
>
> Okay, I went through my query again and found out what was causing some
> records not to show up in the query.
>
> Here's where I'm having a problem:
> IIf([Forms]![Case-Based Query]![motcode] Is Not Null,[Forms]![Case-Based
> Query]![motcode],[combined simple].[motcode] & Null)
>
> What I want is the IIf to test if the combobox is empty. If so, take that
> value, else take any possible values from [combined simple].[motcode].
> However, the query takes every value except for Null values, so any records
> with a null value for motcode doesn't appear in the results. Is there any way
> to force the query to accept null values as well?
>
> Steven L
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/200508/1
.
- Follow-Ups:
- Re: "You canceled the previous operation."
- From: Steven L via AccessMonster.com
- Re: "You canceled the previous operation."
- References:
- "You canceled the previous operation."
- From: Steven L via AccessMonster.com
- Re: "You canceled the previous operation."
- From: Steven L via AccessMonster.com
- Re: "You canceled the previous operation."
- From: Steven L via AccessMonster.com
- Re: "You canceled the previous operation."
- From: Steven L via AccessMonster.com
- "You canceled the previous operation."
- Prev by Date: Re: Looking for a more clever SQL WHERE clause
- Next by Date: Re: Send the user a Msg when a query returns a blank form.
- Previous by thread: Re: "You canceled the previous operation."
- Next by thread: Re: "You canceled the previous operation."
- Index(es):
Relevant Pages
|