'关闭数据集对象,释放资源
   Public Function RecordClose(tempRecord As ADODB.Recordset)
    If tempRecord.State <> 0 Then tempRecord.Close
    Set tempRecord = Nothing
   End Function
请问这样写对吗?