Information générale
Catégorie:
Codage, syntaxe et commandes
>>I'm trying to set the focus to a textbox on my form and have tried using the setfocus method. I'm obviously using it wrong since it's not working. I've looked in help for an example and have come up with nothing. Can someone give me an example on how this works.
>>
>>Mark A. Struck
>
>Mark,
>
>Where are you issuing the setfocus call and can you show us your actual code? It is quite difficult to try to troubleshoot code that we can't see.
Jim,
Maybe I should explain my situation more clearly. I have a data entry screen and there are some fields that cannot be left blank. I put in the field properties at the database level this rule but this rule doesn't get enforced until I do a tableupdate(). I spoke with our data entry people and asked them if they liked this option and was told no. I then thought of keeping the field properties in place and add the rules on the front end also. So, If someone leaves a certain field blank and tried to tab out of it I want to display an error and not let them leave the field until something is entered. The setfocus() works if I call it from a different control. I tried calling it from the lostfocus method of the control I want to get focus but this doesn't, the next control just gets the focus. If anyone has any suggestions I would surely welcome them.
Mark A. Struck
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement