I have added some code to not leave the Customer page when the Address field is not filled in.
This works great when u are in a edit mode or Create new mode. If I click ok or the X button on the page my page will not close and my users are forced to fill in the info.
Now here is the challenge.
When I delete a customer record, it thinks that my address field is still not filled it. I added code to say if "No." <>'' then run the code but that does not work, as at that point the "No." field still holds the value.
I added some messages and it seems like the OnQueryclose is run before the delete trigger on the page.
Has anyone done smth like this before ??
Any suggestion as to where should I add my code so that this works. It really works great on existing on new customers, but when user deletes a customer they can not leave the page and that is truly a show stopper as they are stuck on that page now.
Any help is much appreciated.