Adodc1.RecordSource = "select * from [kf] where fjh='" + Text1 + "'"

来源:百度知道 编辑:UC知道 时间:2024/06/15 13:01:42
要求对象错误
Adodc1.RecordSource = "select * from [kf] where fjh='" + Text1 + "'"
请问如何解决

Adodc1.RecordSource = "select * from [kf] where fjh='" + Text1.text+ "'"

你试试Adodc1.RecordSource = "select * from kf where fjh='" + Text1 + "'"
好像可以解决。这条语句在SQL 2000好像可以,
如果你是MYSQL 好像就需要 我上面的那样~!