ACC95: Can't Requery Microsoft Graph Object on Report (154455)



The information in this article applies to:

  • Microsoft Access for Windows 95 7.0

This article was previously published under Q154455
Moderate: Requires basic macro, coding, and interoperability skills.

SYMPTOMS

When you attempt to requery a Microsoft Graph object on a report, you may receive the following message:
Microsoft Access doesn't allow you to use this method in the current view.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 7.0. This problem no longer occurs in Microsoft Access 97.

MORE INFORMATION

Steps to Reproduce Problem

  1. Open the sample database Northwind.mdb.
  2. Open the Sales By Category report in Design view.
  3. Add the following code to the form's module:
          Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As _
             Integer)
             Me!Graph10.Requery
          End Sub
    						
  4. Close and save the report.
  5. Print Preview the report. Note that you receive the error mentioned in the SYMPTOMS section.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kberrmsg kbfix kbinterop kbProgramming KB154455