vb语法问题,rs.Open "select * from zh where id=✀&text1.text&✀", db, adOpenStatic, adLockOptimistic

运行后提示:将数据类型varchar转换为float时出错,请问怎样解决
2025-01-21 02:49:56
推荐回答(2个)
回答1:

是不是符号输错了?
rs.Open "select * from zh where id='" & text1.text & "'", db, adOpenStatic, adLockOptimistic

回答2:

"select * from zh where id='" & text1.text& "'", db, adOpenStatic, adLockOptimistic