【发布时间】:2010-03-21 19:22:40
【问题描述】:
我有这个代码:
With shtControleblad
Dim strsql_basis As String
strsql_basis = "INSERT INTO is_calculatie (offerte_id) VALUES ('" & Sheets("controleblad").Range("D1").Value & "')"
rs.Open strsql_basis, oConn, adOpenDynamic, adLockOptimistic
Dim last_id As String
last_id = "select last_insert_id()"
End With
字符串 last_id 未填充。怎么了?我需要找到 te last_insert_id 以便在其他查询中使用它。
【问题讨论】:
-
last_id 不包含“select last_insert_id()”?你赌多少钱?
标签: mysql excel vba lastinsertid