Y
yarra
This is probably really simple, but can anyone helps with this question?
I have a table with a field called UnitCode, in which the data is always
three letters followed by four numbers (eg ABC1234).
I want to create a query which selects records from the table based on a
value for UnitCode entered in a text box on a form, including wildcards. I
have set up the criteria field for the UnitCode field in the query design
view so that it reads
Like Forms!FormName!TextBoxName
This works if I have only one value in the text box, such as BIO2*. How can
I make it select all records where UnitCode is either BIO2* or GEN2*?
I have also tried doing this using a multi-select list box instead of a text
box, but the answers I found on this site were beyond me (my coding skills
are almost non-existent).
Thanks.
I have a table with a field called UnitCode, in which the data is always
three letters followed by four numbers (eg ABC1234).
I want to create a query which selects records from the table based on a
value for UnitCode entered in a text box on a form, including wildcards. I
have set up the criteria field for the UnitCode field in the query design
view so that it reads
Like Forms!FormName!TextBoxName
This works if I have only one value in the text box, such as BIO2*. How can
I make it select all records where UnitCode is either BIO2* or GEN2*?
I have also tried doing this using a multi-select list box instead of a text
box, but the answers I found on this site were beyond me (my coding skills
are almost non-existent).
Thanks.