Currently I have a piece of code
GCriteria = "DrawingNumber" & " LIKE '*" & QDrawingNumber & "*'"
Form_Main.RecordSource = "select * from tblMain where " & GCriteria
This allows the user to type in a value in the text box 'QDrawingNumber' and find all records in tblMain which has values in the field 'DrawingNumber' that match the input.
How would I go about to add multiple criteria to this query, like how would I add the line
"ProductType" & " LIKE '*" & QProductType & "*'" so that the user can specify the drawing number as well as the product type?
Thanks in advance
GCriteria = "DrawingNumber" & " LIKE '*" & QDrawingNumber & "*'"
Form_Main.RecordSource = "select * from tblMain where " & GCriteria
This allows the user to type in a value in the text box 'QDrawingNumber' and find all records in tblMain which has values in the field 'DrawingNumber' that match the input.
How would I go about to add multiple criteria to this query, like how would I add the line
"ProductType" & " LIKE '*" & QProductType & "*'" so that the user can specify the drawing number as well as the product type?
Thanks in advance