I need a bit of help with syntax as this one keeps throwing me off. I think it is likely to be a simple fix but I just can't figure it out.
I have a field on frm_main2 called txt_leavers_list_multichange_id and within my VB code I want to make sure this field is populated before the script is run.
When I run the following script I get Run-time error '424' Object required.
I'm guessing my syntax is wrong. Any advice? Do I always need to specify "Is Null" AND =""?
I have a field on frm_main2 called txt_leavers_list_multichange_id and within my VB code I want to make sure this field is populated before the script is run.
When I run the following script I get Run-time error '424' Object required.
I'm guessing my syntax is wrong. Any advice? Do I always need to specify "Is Null" AND =""?
Code:
If Forms!frm_main2!txt_leavers_list_multichange_id Is Null Or Forms!frm_main2!txt_leavers_list_multichange_id = "" Then
MsgBox "You must enter a multichange ID."
Else
(...)
End If