D
Dale Fye
Using Access XP on a Windows XP Pro system.
I have a form that contains a subform. When I make any changes to the data
on the subform, I want to disable all of the controls on the main form until
the user has either saved or cancelled the changes they have made on the
subform (I've got this part working by running some code in the LostFocus
event of each of the controls on the subform). Maybe I should be doing this
in the controls AfterUpdate event instead of the LostFocus
Unfortunately, in order to disable all of the controls on the main form, I
have to set the focus in that form to a dummy control that has zero width.
At the end of my disabling code, I want to return the focus to the next
control that should get the focus in my subform, but have not been able to
figure out how to accomplish this. Any ideas?
I have a form that contains a subform. When I make any changes to the data
on the subform, I want to disable all of the controls on the main form until
the user has either saved or cancelled the changes they have made on the
subform (I've got this part working by running some code in the LostFocus
event of each of the controls on the subform). Maybe I should be doing this
in the controls AfterUpdate event instead of the LostFocus
Unfortunately, in order to disable all of the controls on the main form, I
have to set the focus in that form to a dummy control that has zero width.
At the end of my disabling code, I want to return the focus to the next
control that should get the focus in my subform, but have not been able to
figure out how to accomplish this. Any ideas?