Microsoft KB Archive/311050

= ACC2002: Microsoft Access Quits When You Scroll Through a Text Box on a Subform =

Article ID: 311050

Article Last Modified on 9/26/2003

-

APPLIES TO


 * Microsoft Access 2002 Standard Edition

-



This article was previously published under Q311050



Novice: Requires knowledge of the user interface on single-user computers.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).



SYMPTOMS
When you use the vertical scroll bar to scroll through a text box on a subform, you may receive the following error message:

Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvenience.

When you view the details in the error report, the report states that Microsoft Access caused an error in User32.dll. Microsoft Access then shuts down.



CAUSE
This problem occurs if the vertical scroll bar of the subform is not visible when you open the main form, and you have use the vertical scroll bar of the main form to scroll down to the subform. When you use the vertical scroll bar of the subform text box in this scenario, Microsoft Access shuts down.



RESOLUTION
Reposition or resize the subform so that you do not have to use the vertical scroll bar of the main form, or so that the vertical scroll bar on the subform is visible.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior
WARNING: If you follow these steps, a general protection fault will occur on your computer. Make sure that you save and then close any open work on your computer before you follow these steps.

 Start Access. On the Help menu, point to Sample Databases, and then click Northwind Sample Database. Create a new form in Design view. Set the Height property of the detail section to 7&quot;.  Add a text box to the form, and then set the following properties: <pre class="fixed_text">  Text Box -  Name: Text0 ControlSource: =String(2000, &quot;a&quot;) Scrollbars: Vertical Left: 0&quot; Top: 5&quot; Width: 3.25&quot; Height: 1.5&quot; </li> Save the form as frmSubform1, and then close it.</li> Create a new form in Design view.</li> Set the AutoResize property of the form to No.</li> Drag the frmSubform1 form into the detail section to create a subform.</li> Save the form as frmMainform, and then close it.</li> Open the frmMainform form in Form view.</li> Use the vertical scroll bar of the main form to scroll all the way to the bottom of the window so that the subform text box is in view.</li> Click the text box, and then click and hold down the vertical scroll bar button in the subform to scroll vertically through the text.

Note that you receive the error message that is mentioned in the &quot;Symptoms&quot; section of this article.</li></ol>

Additional query words: pra quit scroll subform

Keywords: kberrmsg kbbug kbnofix KB311050

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.