strsql = "select * from name where name=" & Trim(Text1.Text) 'Trim去掉前后空格你这个name在数据库中是字符串的所有必须加上单引号.
dim strsql as string
1个回答
相关问题
-
英语翻译Dim a() As String,b() As String,x1() As String,y1() As S
-
如何把整数型转换成文本型dim sz1 as Integerdim sz2 As String * 12ReadProc
-
Private Sub Form_Click( ) Dim x As Integer,y As Integer,z As
-
Fix函数的具体用法,Prirate sub Form__click( )Dim R1 as double ,Dim R
-
vb中 Dim a As Double,b As Double,sn As Double,tn As Double pi
-
Private Sub Form_Click() Dim x As Integer Static y As Intege
-
英语翻译Private Sub cmdOK_Click()Dim SQL As StringDim rs As ADOD
-
Private Sub Command1_Click() Dim x As Single,y As Single Pic
-
0402 Private Sub Command1_Click() Dim a As Single,b As Singl
-
英语翻译Dim s As StringDim i As IntegerList1.Clears = Text1.Text