General information
Category:
Coding, syntax & commands
calling setfocus from my toolbar does fire the valid. but unfortunately i could not find a way of knowing what the valid returned, short of setting a switch. without knowing i continue through my save logic. could put a switch in all the valids, but it would be easier to just make sure the controlsource and value are in sync at the top of the valids.
>Brenda,
>I don't use toolbars, but I think the standard way of dealing with this is to _screen.ActiveControl.SetFocus() first thing in the toolbar buttons. This will cause the Valid to fire so the ControlSource gets updated.
>>doing a work around for validating from the cmdsave on the toolbar. because i call lastcontrol.valid myself, the controlsource is not updated with the value. want to update the controlsource with the value generically. do not want to change all my valid code, since it all references the controlsource now.
Previous
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