select my, column, list from mytable
where customername = 'blah'
or
select my, column, list from mytable
where customerno = 12345
you cold parameterise the query to take a value from a form control
say you had an UNBOUND combo / list box containing customers called cbCustomers
the where clause is something like
strSQL = "select my, column, list from mytable"
strSQL = strSQL & " where customerno = " & cbCustomers.value
or
strSQL = "select my, column, list from mytable"
strSQL = strSQL & " where customername = '" & cbCustomers.value & "'"