>I'm using toolbar on my data entry form for rec navigation and saving/deleting etc..
>
>As toolbars don't receive focus, i use a generic routine to set focus again on the current control for the value to get updated...
>
>Now problem is, there's valid code in column 1 of grid, if the focus is on column 1, and I try to add a new record, which adds a blank record and requeries the view (on which grid is based) and make it empty, my valid condition fires and warns that value is invalid..(cos it is empty ) and not leaving grid's column 1....
>
>Can anybody help me on this ??
Hi, I don't know if it will help but I had the same problem. So I put a patch button in my form class. I put a procedure to set focus the button if a toolbar click fires or a shortcut key was used. That way, the value of the current control is updated and I can setfocus to the first control.
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