Hi,
I am trying to run a query from within VBA and I am coming up with this error. Please help!
TACData is defined as a DAO.Recordset. Plantname_cbx and SupplierName_cbx are both combo boxes containing text values. Thanks in advance
I am trying to run a query from within VBA and I am coming up with this error. Please help!
Code:
Set TACData = CurrentDb.OpenRecordset("SELECT * FROM TACWithLRB_tbl WHERE [Part Number] is not null AND [Supplier Name] = Me.SupplierName_cbx.Value AND [Destination Plant] = Me.PlantName_cbx.Value ORDER BY TACWithLRB_tbl.[Part Number];")
TACData is defined as a DAO.Recordset. Plantname_cbx and SupplierName_cbx are both combo boxes containing text values. Thanks in advance
