发新话题
打印

[基础] 这样设数据源为什么不行?

这样设数据源为什么不行?

Text1.Text = "select * from TableName where objectName='主板'"
Adodc1.RecordSource = Text1.Text
Adodc1.Refresh
/////我必须以Adodc1.RecordSource = Text1.Text 这模式设数据源,因为筛选条件是由客户自己选的.客户所选的内容就保存在Text1里.请教.

TOP

这样试试
Adodc1的记录源属性改成Adodc1.CommandType = adCmdUnknown
换个头像,看见广告就眼红,直接封ID。

TOP

发新话题