ACC: Append Query Causes Divide Error (177102)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q177102 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you run an append query, you may receive one of the following error
messages:
Microsoft Windows 95
This program has performed an illegal operation and will be shut down.
If the problem persists, contact the program vendor.
If you are using Microsoft Access 7.0, you receive the following message
when you click Details:
MSACCESS caused a divide error in module MSJT3032.DLL
If you are using Microsoft Access 97, you receive the following message
when you click Details:
MSACCESS caused a divide error in module MSJET35.DLL
Microsoft Windows NT
An application error has occurred
and an application error log is being generated.
MSACCESS.exe
Exception: divide by zero
CAUSE
The append query contains a join to a field in another query whose
UniqueValues property is set to Yes. For example, the append query may be
based on a table that is joined to a select query whose UniqueValues
property is set to Yes in order to limit the data that is appended.
WORKAROUND
When creating an append query, do not use a join to a query whose
UniqueValues property is set to Yes. Set the UniqueValues property of the
select query to No, and then set the UniqueValues property of the append
query to Yes. Instead of using a select query, you may also want to
consider using the source table of the select query, and then setting the
UniqueValues property of the append query to Yes.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft Access
versions 7.0 and 97.
REFERENCES
For more information about the UniqueValues property, search the Help Index
for "UniqueValues property."
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbbug KB177102 |
---|
|