General information
Category:
Forms & Form designer
Here's an easy one:
I have an object on a form where I'd like to have the user enter a value, call a form method that searches a table for a valid record, if a record is found enable the other objects on the form ELSE display a messagebox saying the value can't be found and setfocus back to the original object for re-entry. The problem is I can't seem to setfocus back to the original object, I keep going to a command button on the form. I've tried setting focus through the objects valid method but I can't use setfocus with that method so I RETURN 0 or .f., doing this still takes me to the command button. I tried using THISFORM.object.SetFocus in the lostfocus method of the object with the same result. Any hints would be appreciated.
TIA
/Chris
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