Thanks for reading this question.
I am using Access 2002. I have a table with customer addresses which includes a STATE field in which the entries are two letter abbreviations. In running a query I want to be able to supply a state abbreviation or just hit ENTER to see all the states.
I've created a query, and have the following in the criteria row of the STATE field:
Like [Which State?} or Is Null
If I type in a state abbreviation the query gives me correct results. However, if I just hit ENTER I get NO results.
I've discovered that I can change the criteria row to read
Like [Which State?} & "*"
to get the correct results.
I would like to understand why the first criterion does not work.
Thanks for your time.
Doxiepup
I am using Access 2002. I have a table with customer addresses which includes a STATE field in which the entries are two letter abbreviations. In running a query I want to be able to supply a state abbreviation or just hit ENTER to see all the states.
I've created a query, and have the following in the criteria row of the STATE field:
Like [Which State?} or Is Null
If I type in a state abbreviation the query gives me correct results. However, if I just hit ENTER I get NO results.
I've discovered that I can change the criteria row to read
Like [Which State?} & "*"
to get the correct results.
I would like to understand why the first criterion does not work.
Thanks for your time.
Doxiepup