I'm trying to fill this DataSet with the info that comes from the ARCHIVES_MASTER_TBL when I run a query selecting the products that match the decade and product line but it's giving me the error: "No value given for one or more required parameters."
OleDbConnection dbConn;
OleDbDataAdapter dbCmdDecade;
dbConn = new OleDbConnection(connectionString);
dbConn.Open();
dbCmdDecade = new OleDbDataAdapter("Select * From ARCHIVE_MASTER_TBL WHERE DECADE_1=" + decade + "AND PRODUCT_LINE=" + productLine, dbConn);
DataSet ds = new DataSet();
dbCmdDecade.Fill(ds, "products");
It worked before adding the "+ "AND PRODUCT_LINE=" + productLine" part but I needed the search to be more specific and only choose the ones that fit both the decade and the product