RevelationUK
Technical User
The following query:
SELECT tblCustomers.*
FROM tblCustomers
WHERE Forms!frmFindCustomer!txtSurname Like tblCustomers!Surname And Forms!frmFindCustomer!txtAddrLn1 Like tblCustomers!AddrLn1 And Forms!frmFindCustomer!txtPostCode Like tblCustomers!PostCode And Forms!frmFindCustomer!cboStates Like tblCustomers!State;
returns no records when I put in "*" or "%" in all 4 fields in my form. I also tried running the query independently and when it asks me for values of Forms!frmFindCustomer!txtSurname i put in "*" or "%". Why is it not returning anything?
SELECT tblCustomers.*
FROM tblCustomers
WHERE Forms!frmFindCustomer!txtSurname Like tblCustomers!Surname And Forms!frmFindCustomer!txtAddrLn1 Like tblCustomers!AddrLn1 And Forms!frmFindCustomer!txtPostCode Like tblCustomers!PostCode And Forms!frmFindCustomer!cboStates Like tblCustomers!State;
returns no records when I put in "*" or "%" in all 4 fields in my form. I also tried running the query independently and when it asks me for values of Forms!frmFindCustomer!txtSurname i put in "*" or "%". Why is it not returning anything?