Is Nothing
I’m working on some largish updates to the Auto FE Updater and I wanted to ensure that the new routine which logs errors would properly handle the situation if there were errors in the error logging routine. A great deal of searching a dimly remembered discussion brought me to fellow Access MVP Dirk GoldGar’s posting on this topic. How to know when a Connection or Recordset is open in Programming
If Not rs Is Nothing Then
rs.Close: Set rs = Nothing
End If
If Not gblLogdb Is Nothing Then _
gblLogdb.Close
MsgBox "The following error occurred in procedure Log_NewSession of Module Log" & vbCrLf & vbCrLf & _
Err.Description & vbCrLf & vbCrLf & Command()
Note that the standard error handling routine, including the sub/function name and module name is created by MZTools. An excellent free utility which I use all the time.
I was rather startled. This isn’t even documented in Access 97 help. Allen Browne has a page on this general topic - Nothing? Empty? Missing? Null?