Hi everybody,
I'm trying to run a query to select data based on information entered in one of two fields in a form. For example, I want to select a list of people based on if the hair color or shoe size (these filds are not mandatory in the table). If I leave the hair color selection field in the form empty, the query should include people with all hair colors, and the same should work for shoe size. If I select a color, the list will show only people with that color and any shoe size. I hope this is clear.
My thoughts on this were to put something like the following criteria in the query:
If (HairColorEntered Is Null, show all people including those with null hair color, otherwise show those where HairColor = HairColorEntered).
How would I get Access to understand me? I feel so alone!
-Alan
I'm trying to run a query to select data based on information entered in one of two fields in a form. For example, I want to select a list of people based on if the hair color or shoe size (these filds are not mandatory in the table). If I leave the hair color selection field in the form empty, the query should include people with all hair colors, and the same should work for shoe size. If I select a color, the list will show only people with that color and any shoe size. I hope this is clear.
My thoughts on this were to put something like the following criteria in the query:
If (HairColorEntered Is Null, show all people including those with null hair color, otherwise show those where HairColor = HairColorEntered).
How would I get Access to understand me? I feel so alone!
-Alan