ACC97: "Property Cannot Be Set" Error Using Rich Text Control

ID: Q199722


The information in this article applies to:

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

  1. Open the sample database Northwind.mdb.


  2. Create a new report based on the Employees table and open it in Design view.


  3. If the field list is not displayed, click Field List on the View menu.


  4. Drag the following field names from the field list to the detail section of the report:


  5. 
       EmployeeID
       LastName
       FirstName 
  6. On the Insert menu, click ActiveX control, and then click Microsoft Rich Text Box control, version 6.0.


  7. Right-click the rich text box control, and then click Properties on the shortcut menu.


  8. Set the ControlSource property of the rich text box control to Notes.


  9. 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