下面的代码在执行时,如果Text1.text是数字就很正常,但一遇到是字母或者是汉字就出错.
数据库字段"My_Id"为"Text"形式的.请各位帮忙分析分析. With Adodc1.Recordset
If .EOF = False Then
.MoveNext
.Find " My_Id = " & text1.text
else
msgbox"你查找的内容不存在!"
exit sub
end if
end with
数据库字段"My_Id"为"Text"形式的.请各位帮忙分析分析. With Adodc1.Recordset
If .EOF = False Then
.MoveNext
.Find " My_Id = " & text1.text
else
msgbox"你查找的内容不存在!"
exit sub
end if
end with
.Find " My_Id = " & text1.text
文字類型
.Find " My_Id = '" & text1.text & "'"