ok i have 6 text boxes which for thi example i have named text1 - text6 will this code work if i want to change a record source of a lstbox?
pleasee help
oh im doing this in VBA which is why im posting here XD
Code:
strsql = "SELECT tblCustomer.[Company Name], tblCustomer.[Company City], tblCustomer.[Company County], tblCustomer.[Company Postcode], tblCustomer.[Company Catagory], tblCustomer.[Company Employee Size] FROM tblCustomer WHERE (((tblCustomer.[Company Name])= " & Nz(Me.Text1,*) & ") AND ((tblCustomer.[Company City])=" & Nz(Me.Text2,*) & ") AND ((tblCustomer.[Company County])=" & Nz(me.Text3, *) & ") AND ((tblCustomer.[Company Postcode])=" & Nz(Me.Text4, *) & ") AND ((tblCustomer.[Company Catagory])=" & Nz(Me.Text5, *) & ") AND ((tblCustomer.[Company Employee Size])=" & Nz(Me.Text6,*) & "));"
pleasee help
oh im doing this in VBA which is why im posting here XD