Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IsNothing Function for Access 97

Functions

IsNothing Function for Access 97

by  ByteMyzer  Posted    (Edited  )
The Microsoft Help Topic states:
[tt]
You can use the IsNothing function determine if an object reference has been set to Nothing.
[/tt]

This is actually not true; there is no IsNothing function built into Access 97.

You can, however, use this function in a Module to simulate this option for all object variables:
Code:
[color blue]Function[/color] IsNothing(obj [color blue]As Variant[/color]) [color blue]As Boolean[/color]
[color blue]On Error Resume Next[/color]
    IsNothing = (obj [color blue]Is Nothing[/color])
[color blue]End Function[/color]
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top