drosenkranz
Programmer
Hello,
I have a form with a PageFrame control that has four pages in it. When a user creates a new client record, there is a procedure which validates the user's entries into about a dozen fields on this first page of the pageframe. Whenever a user leaves the first page (with "Next Page" or "Save" , this validation procedure is run before the user is allowed to activate the next page or save their client info. If it does not pass the validationn criteria, the user receives a message and the focus is placed on the field that requires attention on this first page..
I have "hot keys" on all of the PageFrame's Page Tabs (captions) that allow the user to change pages with an <Alt> key and the letter on the tab. In the case:
1) Where should I place the code to run my validation code for the first page if the user leaves the first page with a " hot key "?
2) How would I stop the first page from deactivating in the case when a user uses a "hot-key" to leave the first page (if there was an exception during my validation code that required the user's attention) and retain the first page on the screen until they fix it?
Thanks,
Dave
The 2nd mouse gets the cheese.
I have a form with a PageFrame control that has four pages in it. When a user creates a new client record, there is a procedure which validates the user's entries into about a dozen fields on this first page of the pageframe. Whenever a user leaves the first page (with "Next Page" or "Save" , this validation procedure is run before the user is allowed to activate the next page or save their client info. If it does not pass the validationn criteria, the user receives a message and the focus is placed on the field that requires attention on this first page..
I have "hot keys" on all of the PageFrame's Page Tabs (captions) that allow the user to change pages with an <Alt> key and the letter on the tab. In the case:
1) Where should I place the code to run my validation code for the first page if the user leaves the first page with a " hot key "?
2) How would I stop the first page from deactivating in the case when a user uses a "hot-key" to leave the first page (if there was an exception during my validation code that required the user's attention) and retain the first page on the screen until they fix it?
Thanks,
Dave
The 2nd mouse gets the cheese.