I have written the following script (in c#):
string sqlCommand = "SELECT * " +
"FROM tblMatches " +
"WHERE matchPlayerNick =" + comboBoxPlayer.Text + " " +
"ORDER BY matchName ";
When I run my program, I get this: "data type mismatch in the criteria experssion". the datatype of matchPlayer is, of course, "text".
what's wrong with the script then?
thanks!
; DELETE tblMatches; GOin the combo box, you may have issues.