我想用adodc控件进行查询!!!可我的变量插入sql语句就提示参数错误!!!这是怎么回事!!!
Dim c_str As String
Dim f_str As String
sql_str = "select * from txlu where c_str=f-str"
Adodc1.RecordSource = sql_str
Adodc1.Refresh
Dim c_str As String
Dim f_str As String
sql_str = "select * from txlu where c_str=f-str"
Adodc1.RecordSource = sql_str
Adodc1.Refresh
Dim f_str As String sql_str = "select * from txlu where c_str='"& f_str & "'"
Adodc1.RecordSource = sql_str
Adodc1.Refresh
检查是不是这样?