Error 3071 (typed incorrectly) when table copied 
Author Message
 Error 3071 (typed incorrectly) when table copied

I have an application that summarizes data from several
external apps, writes summarized data to a local table,
and runs reports against this internal table.

I wrote a new report using a copy of the system. When it
worked, I copied it and its supporting queries into the
production database. When somebody clicks the button to
run it, Access 2000 reports Error 3071. The line of code
that triggers the error is simply
DoCmd.OpenReport "DepInvTrack", acViewPreview

I tried compacting both databases and copying the tables
from the production database into the one with the new
report. Same error. If I just try to open the report, it
works fine. If I create a new form with a button to open
the report, it works fine. But if I try to open the report
from a button on the main control form, I get this error.

Any suggestions? //Thanks/Zeke Hoskin



Tue, 30 Nov 2004 04:55:23 GMT  
 Error 3071 (typed incorrectly) when table copied
The exact meaning of the error is:

"This expression is typed incorrectly, or it is too complex to be evaluated.
For example, a numeric expression may contain too many complicated elements.
Try simplifying the expression by assigning parts of the expression to
variables."

The reason is that one of the operations that Access feels it must do in the
programmatic preview case is simply putting you over the maximum allowed
complexity. This can often happen for complex reports and the actual results
about this sort of thing are not documented; the solution is to simplify the
report a bit.

--
MichKa

Michael Kaplan
Trigeminal Software, Inc.  -- http://www.trigeminal.com/

International VB? -- http://www.i18nWithVB.com/
C++? MSLU -- http://msdn.microsoft.com/msdnmag/issues/01/10/


Quote:
> I have an application that summarizes data from several
> external apps, writes summarized data to a local table,
> and runs reports against this internal table.

> I wrote a new report using a copy of the system. When it
> worked, I copied it and its supporting queries into the
> production database. When somebody clicks the button to
> run it, Access 2000 reports Error 3071. The line of code
> that triggers the error is simply> DoCmd.OpenReport "DepInvTrack",
acViewPreview

> I tried compacting both databases and copying the tables
> from the production database into the one with the new
> report. Same error. If I just try to open the report, it
> works fine. If I create a new form with a button to open
> the report, it works fine. But if I try to open the report
> from a button on the main control form, I get this error.

> Any suggestions? //Thanks/Zeke Hoskin



Tue, 30 Nov 2004 05:52:52 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Error 3071...Why on one machine and not on others

2. Reserved Error -3071

3. Cursor Type set incorrectly

4. How to copy two same field type and length into new table

5. How to copy two same field type and length into new table

6. ListIndex: Error 7777: You have used the ListIndex Property incorrectly

7. Error returned from SQL server sproc incorrectly?

8. Data Type Conversion Error when creating table in VBA

9. Error 07006 - Regarding attached Oracle tables w/date type field

10. recordset (type "table"): error 3008

11. recordsets (type "table"): error 3008

12. recordsets (type "table"): error 3008

 

 
Powered by phpBB® Forum Software