G
Guest
I've been hitting an error when trying to assign a Null field to a variable.
I have set up a record (RecSet) and am looping through it using the
following. As you can see, I tried using the If statement to avoid assigning
the Null value to the variable.
While Not RecSet.EOF
If RecSet!Salutation = Null Then
Salutation= ""
Else
Salutation= RecSet!Salutation
End If
Wend
My problem is that whether the Salutation on the RecordSet is Null or not,
it just goes straight to the Else statement and this produces an error.
Anybody know if there is a way around this other that making sure the field
isn't Null?
Ta.
I have set up a record (RecSet) and am looping through it using the
following. As you can see, I tried using the If statement to avoid assigning
the Null value to the variable.
While Not RecSet.EOF
If RecSet!Salutation = Null Then
Salutation= ""
Else
Salutation= RecSet!Salutation
End If
Wend
My problem is that whether the Salutation on the RecordSet is Null or not,
it just goes straight to the Else statement and this produces an error.
Anybody know if there is a way around this other that making sure the field
isn't Null?
Ta.