ACC97: "Property Cannot Be Set" Error Using Rich Text Control
ID: Q199722
|
The information in this article applies to:
-
Microsoft Access 97
-
Microsoft Office Developer Edition 97
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you use a bound rich text box ActiveX control in a report and try to preview the report, you may receive the following error message:
Property cannot be set.
However, you can still preview and print the report.
CAUSE
Microsoft Access is trying to paint the control before a Windows handle for the report is created.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
Steps to Reproduce Behavior
- Open the sample database Northwind.mdb.
- Create a new report based on the Employees table and open it in Design view.
- If the field list is not displayed, click Field List on the View menu.
- Drag the following field names from the field list to the detail section of the report:
EmployeeID
LastName
FirstName
- On the Insert menu, click ActiveX control, and then click Microsoft Rich Text Box control, version 6.0.
- Right-click the rich text box control, and then click Properties on the shortcut menu.
- Set the ControlSource property of the rich text box control to Notes.
- On the File menu, click Print Preview.
Note that you receive the error mentioned in the "Symptoms" section for each rich text box control on the report.
Additional query words:
pra
Keywords : kberrmsg kbdta RptProb OdeGen
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: August 12, 1999