Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Visual Basic Express 2010 并且正在使用 Access 数据库
Dim count as Integer
SQL = "SELECT * FROM transac WHERE transac_id = " & "'" & count & "'"
我会假设您transac_id是一种INT数据类型,并且您将单引号放在count使其成为字符串的周围。
transac_id
INT
count
尝试:
SQL = "SELECT * FROM transac WHERE transac_id = " & count
"select * from transac where transac_id = " & count;