Still no joy
I still havent got this right.
I amended my code as above. When I input a valid supplier - no record gets inserted. When I put an invalid code in, a record Does get inserted. So its the wrong way around!
Also, I didnt get a error message for my invalid supplier. Either way, the message is never displayed!
Is this the error message in the correct place???
I have attached the updated code.
Thanks for the help!