|
楼主 |
发表于 2020-4-22 15:15:01
|
显示全部楼层
再问一下,如果定义在一个private的过程中
比如
Public Sub tab_save()
Dim rs_save As New ADODB.Recordset
Dim db_save As New ADODB.Connection
Dim connectionstring As String
Dim sqlstring As String
connectionstring = "provider=Microsoft.Jet.oledb.4.0;data source=" & dbname
db_save.Open connectionstring '-------------------------------连接adodb 数据库
......
Set rs_save = Nothing
Set db_save = Nothing
End Sub
那么请问是不是
Set rs_save = Nothing
Set db_save = Nothing
写不写都一样呢?
|
|