oCmd.CommandText = [select * from customers where CustomerID = ?] oPar = oCmd.CreateParameter("CustomerID", adVarChar, adParamInput, 6, "ALFKI") oCmd.Parameters.Append(oPar) oRs = oCmd.Execute()>I'm using the VFPOLEDB provider and I am creating a command object like this:
>OleDbCommand objCmd = new OleDbCommand("select * from customers where CustomerID = ?"); >objCmd.Parameters.Add("CustomerID", "ALFKI"); >>
>No value given for one or more required parameters. >>