OleDB Parameters
问题 I have this access db that I have a ddl for the state name and a ddl for the year. I have a gridview that I'd like to pass the value of the state drop down list into where clause. Obviously if I could use sql with the named parameters I would but this is what I'm stuck with and not sure exactly how to format it correctly. the drop down list is name ddlStates. In the parameters I've tried mycommand.Parameters.Add("@ddlStates") here is the data set public DataSet GetData() { DataSet ds; using