I already have some code which checks the value of a field and enters text in another field accordingly. The code only checks for one value however I need to check for more than one and enter the default text into the other field. I have pasted my working code below and an example of how I think the revised code should work.
Private Sub Delivery_Address_Enter()
If Company_Name = "Company1" Then
Special_Instructions.Value = "Please deliver to gate 1"
End If
End Sub
Private Sub Delivery_Address_Enter()
If Company_Name = "Company1" or "Company2" or "Company7" Then
Special_Instructions.Value = "Please deliver to gate 1"
End If
End Sub
Thanks in advance.
Private Sub Delivery_Address_Enter()
If Company_Name = "Company1" Then
Special_Instructions.Value = "Please deliver to gate 1"
End If
End Sub
Private Sub Delivery_Address_Enter()
If Company_Name = "Company1" or "Company2" or "Company7" Then
Special_Instructions.Value = "Please deliver to gate 1"
End If
End Sub
Thanks in advance.