RodShinall
Registered User.
- Local time
- Today, 03:31
- Joined
- Dec 21, 2006
- Messages
- 32
I am experiencing an error message in an Address Book application I am working on. This
application stores names, addresses, phone numbers etc. It also stores URL's to websites. On my form I have arranged my text boxes columnar style allowing me to tab down the page in a logical order to enter data. In records that contain street addresses and phone numbers I display all the appropriate text boxes with their labels. In records that contain only a name and a website URL I hide all unused controls and reposition the website and two other text boxes higher on the form to avoid tabbing through unused text boxes. I accomplish this using the form's OnCurrent event and VBA code specifying the Top and Visible properties of the controls I want to hide or reposition. This all works perfectly as far as the form is concerned. However, at times I like to view my data in datasheet view and when I try to switch to datasheet view I get this error: Runtime error
'2100' The control or subform is too large for this location. When I click debug, the code window opens highlighting the line of code specifying the Top property of the text box. This also occurs in a couple of other applications that I have developed where I have used the OnCurrent event to change the Top property of several controls. I can't figure out why switching to datasheet view triggers this error since the form works perfectly. Can anyone tell me why this is happening and f there is a fix? I am using Access 2003. Thank you.
application stores names, addresses, phone numbers etc. It also stores URL's to websites. On my form I have arranged my text boxes columnar style allowing me to tab down the page in a logical order to enter data. In records that contain street addresses and phone numbers I display all the appropriate text boxes with their labels. In records that contain only a name and a website URL I hide all unused controls and reposition the website and two other text boxes higher on the form to avoid tabbing through unused text boxes. I accomplish this using the form's OnCurrent event and VBA code specifying the Top and Visible properties of the controls I want to hide or reposition. This all works perfectly as far as the form is concerned. However, at times I like to view my data in datasheet view and when I try to switch to datasheet view I get this error: Runtime error
'2100' The control or subform is too large for this location. When I click debug, the code window opens highlighting the line of code specifying the Top property of the text box. This also occurs in a couple of other applications that I have developed where I have used the OnCurrent event to change the Top property of several controls. I can't figure out why switching to datasheet view triggers this error since the form works perfectly. Can anyone tell me why this is happening and f there is a fix? I am using Access 2003. Thank you.