fiogf49gjkf0d Hi, Thanks for the replies
The problem that I seem to be having is that if I set the button ModalResult to mrNone (so that it doesn't close the form which is why I need the close script) the validation doesn't see what has been entered in the field, so if there is nothing in the field when I enter the form and I click my button it validates and says you have missed the key field, however if I then enter something and then click the validate button it still shows the missed field message as though it hasn't seen whats in there. Obviously when I had the ModalResult set to mrOk it was saving the data in the field before validating.
How can I automatically save what has been entered so that when I click the validate button it sees what has been entered?
Thanks
Any advice on this would be appreciated.
Dave
|