I am struggling getting the exact code for my If function, any help would be appreciated.....
I have a purchase order form linked to a main customer table - so every order has to have an associated customer.
The Customer No on the order is a combo box linked to the Customer table with a "Not in List" message box.
Each Customer has a current status eg Active,Complete,Delayed and only want to allow orders to be raised depending on the status.
I am trying to write an If statement (in after update) along the lines of
If table.CustomerNo."the customer no entered" status = "Complete"or "Delayed" then MsgBox "the status of this customer does not allow orders to be made"
But seem to be getting in a mess with my brackets and dots etc
I am sure this is simple to an expert
Many thanks
I have a purchase order form linked to a main customer table - so every order has to have an associated customer.
The Customer No on the order is a combo box linked to the Customer table with a "Not in List" message box.
Each Customer has a current status eg Active,Complete,Delayed and only want to allow orders to be raised depending on the status.
I am trying to write an If statement (in after update) along the lines of
If table.CustomerNo."the customer no entered" status = "Complete"or "Delayed" then MsgBox "the status of this customer does not allow orders to be made"
But seem to be getting in a mess with my brackets and dots etc
I am sure this is simple to an expert
Many thanks