Hello all:
I have a form with several vertical scrolling subforms (form view), each placed on a separate tab. Throughout use of the form I am changing the visibility of the tab control, which hides all the subforms (but does not close them). However, each time that I "reveal" the tab, each subform remains at the last scrolled location. I want to reset the scrollbars to the top of the form after the tab is "hidden".
To do this, I had planned on setting the focus to a textbox control at the top of each subform. the problem is, I can't seem to get the call working correctly. This is what I wrote:
which generates an "Object doesn't support property or method" error. I want to call this code from a button object on the main form.
Am I referencing the object incorrectly? I'm not used to calling objects this way: I usually use the me. method. Thanks!
I have a form with several vertical scrolling subforms (form view), each placed on a separate tab. Throughout use of the form I am changing the visibility of the tab control, which hides all the subforms (but does not close them). However, each time that I "reveal" the tab, each subform remains at the last scrolled location. I want to reset the scrollbars to the top of the form after the tab is "hidden".
To do this, I had planned on setting the focus to a textbox control at the top of each subform. the problem is, I can't seem to get the call working correctly. This is what I wrote:
Code:
Forms!frm_DataEntry.sbf_tab_Billing.txt_Scroll.SetFocus
which generates an "Object doesn't support property or method" error. I want to call this code from a button object on the main form.
Am I referencing the object incorrectly? I'm not used to calling objects this way: I usually use the me. method. Thanks!