ACC2002: Microsoft Access Quits When You Scroll Through a Text Box on a Subform (311050)



The information in this article applies to:

  • Microsoft Access 2002

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.

MORE INFORMATION

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.

  1. Start Access.
  2. On the Help menu, point to Sample Databases, and then click Northwind Sample Database.
  3. Create a new form in Design view.
  4. Set the Height property of the detail section to 7".
  5. Add a text box to the form, and then set the following properties:
       Text Box
       ---------------------------------
       Name: Text0
       ControlSource: =String(2000, "a")
       Scrollbars: Vertical
       Left: 0"
       Top: 5"
       Width: 3.25"
       Height: 1.5"
    					
  6. Save the form as frmSubform1, and then close it.
  7. Create a new form in Design view.
  8. Set the AutoResize property of the form to No.
  9. Drag the frmSubform1 form into the detail section to create a subform.
  10. Save the form as frmMainform, and then close it.
  11. Open the frmMainform form in Form view.
  12. 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.
  13. 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 "Symptoms" section of this article.

Modification Type:MajorLast Reviewed:9/26/2003
Keywords:kbbug kberrmsg kbnofix KB311050