I have a simple syntax problem that I want help with.
On an after update field in a form I have the following code
"If Me.Cust_Del_PCode.Value Like "EN9*" Then Me.Delivery_Cost.Value = "55"
If Me.Cust_Del_PCode.Value Like "BD1*" Then Me.Delivery_Cost.Value = "65"
Else: MsgBox (“LOOK UP THE DELIVERY COST”)"
On running the VBA, it does not like the Else: MsgBox ("") syntax.
Please help
Rob
On an after update field in a form I have the following code
"If Me.Cust_Del_PCode.Value Like "EN9*" Then Me.Delivery_Cost.Value = "55"
If Me.Cust_Del_PCode.Value Like "BD1*" Then Me.Delivery_Cost.Value = "65"
Else: MsgBox (“LOOK UP THE DELIVERY COST”)"
On running the VBA, it does not like the Else: MsgBox ("") syntax.
Please help
Rob