I have a combo box I have to populate based on a query. I'm also doing an import within my app and if I hard code my query within my drop down I get an error during my import about it being used by someone else. My import effects the table that is used in my drop down. So i'm trying to use the following code to set the query to the combo box
I've tried this with no success
I've tried this with no success
cmb.RowSource = "SELECT VAL, TXT FROM S_V WHERE SID = 1;"
cmb.BoundColumn = 3
cmb.Requery
cmb.SetFocus
cmb.Value = "All"