Hi!
I'm pretty new with VBA. This is my code and I get a type mismatch error where I put ***. The only thing I want is to set my variable "BGTaskName" with the value "mods_commercialinvoice". Any idea what's wrong with my code?
Thanks in advance
Sub Main()
If ThisForm.Components("shipcountry"
= "USA" Then
***ThisForm.Variables("BGTaskName"
= "mods_commercialinvoice"
Else
If ThisForm.Components("shipcountry"
<> "USA" And ThisForm.Components(""
<> "Canada" Then
ThisForm.Variables("BGTaskName"
= "mods_ExportDeclaration"
End If
End If
End Sub
I'm pretty new with VBA. This is my code and I get a type mismatch error where I put ***. The only thing I want is to set my variable "BGTaskName" with the value "mods_commercialinvoice". Any idea what's wrong with my code?
Thanks in advance
Sub Main()
If ThisForm.Components("shipcountry"
***ThisForm.Variables("BGTaskName"
Else
If ThisForm.Components("shipcountry"
ThisForm.Variables("BGTaskName"
End If
End If
End Sub