In the VBA i believe there is some part that isn't right. I am trying If in the Combo box i select any value to only give me those values in a report. There may be 4 values that i select by and i only want to receive the data by those 4 sorts
SELECT TBL_NSF_Data.[Building Number], TBL_NSF_Data.[Unit Number], TBL_NSF_Data.[Unit Type], TBL_NSF_Data.[Hand'], TBL_NSF_Data.[Scope'], TBL_NSF_Data.[HD Sku], TBL_NSF_Data.Description, TBL_NSF_Data.Unit, TBL_NSF_Data.Qty, TBL_NSF_Data.xmcode
FROM TBL_NSF_Data
WHERE (((TBL_NSF_Data.[Unit Number]) Like "*" & [forms]![Searchform]![UnitNumber] & "*") AND ((TBL_NSF_Data.[Unit Type]) Like "*" & [forms]![Searchform]![Unittype] & "*") AND ((TBL_NSF_Data.[Hand']) Like "*" & [forms]![Searchform]![Hand] & "*") AND ((TBL_NSF_Data.[Scope']) Like "*" & [forms]![Searchform]![scope] & "*") AND ((TBL_NSF_Data.Phase) Like "*" & [forms]![Searchform]![Phase] & "*") AND ((TBL_NSF_Data.[L or M])<>"-"));