Adodc1.RecordSource的问题
vb吧
全部回复
仅看楼主
level 2
dafeng1230 楼主
系统提示“语法错误,操作丢失”Adodc1.RecordSource = "select * from 用户 where 用户名='" & Text1.Text & "'"请教:我这里错在那了
2006年05月17日 13点05分 1
level 1
你的等号是不是有问题呢
2006年05月17日 13点05分 2
level 1
等号前后都加个空格
2006年05月17日 14点05分 3
level 2
dafeng1230 楼主
我追综了一下 是Adodc1.RecordSource = "select * from 用户 where 用户名='" & Text1.Text & " '" Adodc1.RefreshAdodc1.Refresh这里错误 系统提示“语法错误,操作丢失”我不明白自己错在哪了
2006年05月17日 14点05分 4
level 1
-_-|||我说的是你 "用户名=" 这个等号,你用了全角的
2006年05月17日 14点05分 5
level 2
dafeng1230 楼主
不知道该说什么了 就是那里
2006年05月17日 14点05分 6
level 13
一般我都使用 chr(34) 与 chr(39) 取代单双引号,看了一堆 ' "" 反而乱.
2006年05月18日 12点05分 7
level 1
你把等号 换成 like 试试!!Adodc1.RecordSource = "select * from 用户 where 用户名 like '%" & Text1.Text & "%'" Adodc1.Refresh 这个应该是没有问题的!!
2007年03月30日 09点03分 8
level 0
我觉得是不是’应该是'啊。用英文的符号
2007年03月30日 13点03分 9
level 1
顺遂输入法问题,鉴定完毕
2007年03月30日 22点03分 10
level 0
Dim rs As New ADODB.RecordSourcers.Open "SELECT* FROM 数据库 WHERE 用户名='" & Text1.Text & "'", conn, adOpenStatic, adLockOptimistic你想找的是不是这个
2007年03月31日 00点03分 11
level 13
Dim appdisk$appdisk=trim(app.path)if right(appdisk,1)<>"\" then appdisk=appdisk & "\"Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & appdisk & "bwscale.mdb;Persist Security Info=False" Adodc1.RecordSource = "select * from bwmain where 用户名=" & Chr(39) & Text1.Text & Chr(39)
2007年03月31日 03点03分 13
level 0
Adodc1.RecordSource = "select * from 客户信息表 where 旅游编号= '" & Text1.Text & "'"msgbox 旅游编号运行完这句,结果旅游编号=""请高手指点下
2008年05月28日 10点05分 14
level 0
Adodc2.RecordSource = "select *from 药品信息 where 药品编号 ='" & Trim(Text8) & "'"总是说"标准表达式类型不匹配"该如何改啊?请高手指点!
2008年11月28日 01点11分 15
level 1
Adodc1.RecordSource = "select * from 客户信息表 where 旅游编号= '" & Text1.Text & "'" adodc1.refreshmsgbox adodc1.recordset.fields("旅游编号")试试看可不可以
2008年11月29日 09点11分 17
level 13
Adodc2.RecordSource = "select * from 药品信息 where 药品编号 =" & Chr(39) & Text8.Text & Chr(39)
2008年11月29日 10点11分 18
level 13
*from 要空格 * from
2008年11月29日 10点11分 19
level 0
‘ '
2008年11月29日 11点11分 20
1