L
Larry
I have a query with 3 parameters. One or none of them will be filled in at
any one time, so the user can get all data, or just specific data based on
one of three columns.
To do this, I have used a parameter like this: Like [Enter Team] & "*"
So that if something is entered, it will be found, otherwise everything will
be returned. All three parameters are on the same line in the criteria
portion of the queries grid (they are ANDed).
The problem I am having is that if I enter nothing, in any parameter, I am
not getting all data back, like I thought I should. Since the asterisk(*)
matches everything, why isn't "Like *" returning all values? For some reason
it is not returning rows where there are NULLS in the columns with the
parameters.
Any idea what I should do here to get all data?
any one time, so the user can get all data, or just specific data based on
one of three columns.
To do this, I have used a parameter like this: Like [Enter Team] & "*"
So that if something is entered, it will be found, otherwise everything will
be returned. All three parameters are on the same line in the criteria
portion of the queries grid (they are ANDed).
The problem I am having is that if I enter nothing, in any parameter, I am
not getting all data back, like I thought I should. Since the asterisk(*)
matches everything, why isn't "Like *" returning all values? For some reason
it is not returning rows where there are NULLS in the columns with the
parameters.
Any idea what I should do here to get all data?