T
tuesamlarry
When user's focus is a textbox control on a subform control, and then Clicks
a Close button on the Main form, would like a messagebox to pop up depending
on which control on the subform had the focus. Some controls will be okay if
user decides to CLOSE, but not others. How do I reference the previous
control?
Main Form is frmClient
Subform is sfrmServiceProvided
Controls on subform I don't want to allow Closing Main form are srvcVoid,
cmdOpenNotes.
I believe my sticking point is that the Screen.PreviousControl is probably
the subform control, and not the textbox control on the subform.
My difficulty is that all my volunteers are seniors, and they are absolutely
wedded to the mouse which they click willy nilly all over the place. Would
appreciate suggestions, including other approaches.
Using Access 2007 on Win XP Pro.
a Close button on the Main form, would like a messagebox to pop up depending
on which control on the subform had the focus. Some controls will be okay if
user decides to CLOSE, but not others. How do I reference the previous
control?
Main Form is frmClient
Subform is sfrmServiceProvided
Controls on subform I don't want to allow Closing Main form are srvcVoid,
cmdOpenNotes.
I believe my sticking point is that the Screen.PreviousControl is probably
the subform control, and not the textbox control on the subform.
My difficulty is that all my volunteers are seniors, and they are absolutely
wedded to the mouse which they click willy nilly all over the place. Would
appreciate suggestions, including other approaches.
Using Access 2007 on Win XP Pro.