无效的 SQL语句;期待 ✀DELETE✀、✀INSERT✀、✀PROCEDURE✀、✀SELECT✀、或 ✀UPDATE✀ 这是什么错?

2025-01-19 20:37:26
推荐回答(3个)
回答1:

rs.Open "dag1", cn, adOpenKeyset, adLockPessimistic

这个里面..你的sql语句是错误的..错误不是

For i = 0 To rs.Fields.Count - 1

回答2:

rs.Open "dag1", cn, adOpenKeyset, adLockPessimistic
改为
rs.Open "select * from dag1", cn, adOpenKeyset, adLockPessimistic

回答3:

For i = 0 To rs.Fields.Count - 1;这句SQL语句表达错误