Saving records

What would you want it to do, in practical terms/example?
Hi Isaac,
Now, I'not sure which function you are referring to so I will offer the code for the IsNothing() function

Code:
Function IsNothing(varToTest As Variant) As Integer
'  Tests for a "logical" nothing based on data type
'  Empty and Null = Nothing
'  Number = 0 is Nothing
'  Zero length string is Nothing
'  Date/TiForms!SearchBuild is never Nothing

    IsNothing = True

    Select Case VarType(varToTest)
        Case vbEmpty
            Exit Function
        Case vbNull
            Exit Function
        Case vbBoolean
            If varToTest Then IsNothing = False
        Case vbByte, vbInteger, vbLong, vbSingle, vbDouble, vbCurrency
            If varToTest <> 0 Then IsNothing = False
        Case vbDate
            IsNothing = False
        Case vbString
            If (Len(varToTest) <> 0 And varToTest <> " ") Then IsNothing = False
    End Select

End Function

As you can see, it tests for all possibilities of nothing...
I must reiterate, though, that I am not the author, nor do I have the name of the author.
 

Users who are viewing this thread

Back
Top Bottom