SQL的错在哪啊?(急)

来源:百度知道 编辑:UC知道 时间:2024/09/28 10:54:57
sql1 = "select Satallite as 卫星 from SAT_INSTR where Satallite ='" & Combo1.Text & "'and Instrucment='" & Combo2.Text & "'"
提示至少一个参数未指定值。
多谢了啊~

sql1 = "select Satallite as 卫星 from SAT_INSTR where Satallite ='" & Combo1.Text & "'and Instrucment='" & Combo2.Text & "'" 语法没问题,
检查你的字段名有无拼写错误

sql1 = "select Satallite as 卫星 from SAT_INSTR where Satallite ='" & Combo1.Text & "'and Instrucment='" & Combo2.Text & "'"
在and前加一空格再试试

语句无错。。但传值可能出现错误。你看一下你是不是传了两个参数。
必须要给SQL传参数的。