i've been messing with this for a couple of weeks and can't seem to get it right.
Scenario: Form to get user data. Some information is collected and stored, some data is output to a (15 page!) form and the information is thrown away and not stored. The form is a Word document and i can get all the output in correctly with the exception of one field i call [Suffix] for 'Jr., Sr., III', etc. i ALWAYS get Error 94, Invalid use of Null when the field is blank, but when it has info in it it outputs correctly. i've tried all the permutations i can think of to check for Null, but it has never worked yet.
How in the heck do i check for Null if i can't check for Null?
Thanks,
Dave
Scenario: Form to get user data. Some information is collected and stored, some data is output to a (15 page!) form and the information is thrown away and not stored. The form is a Word document and i can get all the output in correctly with the exception of one field i call [Suffix] for 'Jr., Sr., III', etc. i ALWAYS get Error 94, Invalid use of Null when the field is blank, but when it has info in it it outputs correctly. i've tried all the permutations i can think of to check for Null, but it has never worked yet.
Code:
'txtSuffix = IIf(IsNull(CStr(Forms!form1!Suffix)), "", (CStr(Forms!form1!Suffix)))
If IsNull(CStr(Forms!form1!Suffix)) Then
txtSuffix = ""
Else
txtSuffix = CStr(Forms!form1!Suffix)
End If
Thanks,
Dave