ACC: Error Message: Error Reading Table or Query '<Name>' (117540)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q117540
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you select a form or report wizard:
- In Microsoft Access 7.0 and 97, the wizard move buttons are not
available (dimmed), and no fields appear in the field list when you
select the form or report wizard.
- In Microsoft Access version 2.0, you receive the error message "Error
reading table or query '<name>'" when you select a form or report
wizard.
- In Microsoft Access version 1.x, you receive the error message "0
parameters supplied, <number> expected" when you select a form or report
wizard.
CAUSE
The query that is selected for the Microsoft Access wizard is a
parameterized crosstab query. The wizards require fixed column headings
so that you can select the fields to be displayed on the form or report.
RESOLUTION
There are three workarounds for this behavior:
- Define column headings for the crosstab query. In Microsoft Access
2.0 or later, use the ColumnHeadings property. In Microsoft
Access version 1.x, choose Query Properties from the View menu in
the query's Design view to define fixed column headings.
- Instead of using parameters, enter value ranges in the crosstab query.
For example, in the criteria row of the parameterized field, replace
between [start date] and [end date] with between #5/15/91# and
#5/25/91#.
- In Microsoft Access 2.0 or later, export the results of the query
to a Microsoft Excel spreadsheet file, and then import that file into
Microsoft Access.
REFERENCES
For more information about column headings, search the Help Index for
"ColumnHeadings property," or ask the Microsoft Access 97 Office Assistant.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kberrmsg kbprb KB117540 |
---|
|