Re: crosstab query
- From: "John Spencer" <spencer@xxxxxxxxx>
- Date: Tue, 26 Jun 2007 15:51:39 -0400
Try putting LIKE in front of the expression.
LIKE IIF(...)
or enter the following as the criteria
Field: Whatever
Criteria: [Forms]![Form Name]![Combo7] or [Forms]![Form Name]![Combo7] Is
Null
In the SQL statement that would be
WHERE Whatever = [Forms]![Form Name]![Combo7] or [Forms]![Form
Name]![Combo7] Is Null
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
"alm09" <alm09@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:61B67618-07D9-493C-BF52-B2316DC6BB82@xxxxxxxxxxxxxxxx
I want a crosstab query to return all records unless the user specifies a
particular account number by updating a combo box on a form. The criteria
I
have in the crosstab query is as follows:
IIf(IsNull([Forms]![Form Name]![Combo7]),"*",[Forms]![Form Name]![Combo7])
When I input an acct number using the combo box the query works and
returns
only those related records. When I leave the combo box null (i.e. do not
update it) and want all records returned I get zero records returned,
when,
in fact, I am expecting thousands of records.
Any suggestions?
.
- Prev by Date: Re: Isolate Patterns
- Next by Date: Re: Binary field won't take dates
- Previous by thread: Re: Crosstab query
- Next by thread: I can't wrap my head around this query
- Index(es):
Relevant Pages
|