A project stops responding when you select a check box on a form that is based on an ActiveX Data Objects recordset in Access 2002 (889491)
The information in this article applies to:
This article applies only to a Microsoft Access project (.adp).
Moderate: Requires basic macro,
coding, and interoperability skills.
SYMPTOMSWhen you select a check box in a form that was created in a Microsoft
Access 2002 project, the program may stop responding when the
following conditions are true:
- The form is based on an ActiveX Data Objects (ADO)
recordset.
- In the Form_Open event, you set the
Record Source property to the ADO recordset.
WORKAROUNDTo work around this problem, use a combo box control to represent the true and false conditions of a
check box control. The following steps are an example of how to do this:
- Start Microsoft Access, and then open the sample Access project that is named NorthwindCS.adp.
- Under Objects, click
Forms.
- Click the Products form, and then click
Design.
- In the toolbox, click the Combo
Box tool, and then click a position on the form where you want to position
the new control.
- In the Combo Box Wizard, click
I will type in the values that I want, and then click
Next.
- In the Col1 column, add two entries.
- Type
True in the first record that you added in step 6, type
False in the second record that you added in step 6, and then click
Next.
- Click Store that value in this field, click Discontinued in the drop-down list, and then click Next.
- In the What label would you like for your combo box box, type Discontinued, and then click Finish.
- On the View menu, click
Properties.
- In the Combo Box Properties dialog box, type Discontinued in
the Control Source box,
and then press ENTER.
Note After you have added the combo box control, you
can delete the Discontinued check box control from the
form. STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 12/21/2004 |
---|
Keywords: | kbtshoot kbProgramming kbDatabase kbprb KB889491 kbAudDeveloper |
---|
|