首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

adodc查询的有关问题

2012-02-27 
adodc查询的问题 Adodc1.RecordSourceselect*案件表where名称like++Text15.Text+Adodc1.Refresh提

adodc查询的问题

Adodc1.RecordSource   =   "select   *   案件表   where   名称   like   "   +   " ' "   +   Text15.Text   +   " ' "
Adodc1.Refresh


提示from   子句语法错误.
刚学到ADO   还望各位老师教教我.

[解决办法]
"select * from 案件表 where 名称 like '& " & Text15.Text & "% ' "

[解决办法]
Adodc1.RecordSource = "select * 案件表 where 名称 = ' " + Text15.Text + " ' "

注意,将 Text15.Text 的单个单引号替换成两个连续的单引号。

热点排行