General information
Category:
Forms & Form designer
Looking for help with SETFOCUS() and valid.
I have a form with textboxes and comboboxes that validate input and call a modal 'subform' for the particular data element, allowing the user to manage the list of valid entries (including adding, editing or deleting those list items, allowing with any appropriate detail). The 'subform' uses a grid for display and navigation and several methods of the form need to be able to set the focus on the grid.
This is a refinement of a simple 'value entered not found, would you like to add it?' approach for more complex data elements.
Unfortunately, I cannot call the SETFOCUS() method of the subform's grid if the subform itself is called by the VALID() of a control on the main form.
Returning a numeric value in the VALID() won't work , because the SETFOCUS() occurs "off" the main form, so there is no taborder to reference.
Doing the validation in the LOSTFOCUS() won't work because I can't set focus to the same control after the subform is finished, and that control has already lost focus. So, if the value in the main form control is not correct after the subform executes, there is no way (that I can see) to validate.
Any ideas greatly appreciated.
Blue Skies!
Joe
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only