Access 2000 - Application giving crazy errors

Lyda_Faye

New Member
Joined
Feb 20, 2003
Messages
49
Hi,

I have completed an Access application on my test server and it is now on the production server. The application runs great! (On my pc) Except...
There is one report that will not run on the production server. I have made sure that the version of Access (2000) and the version of VB (6.0) are the same.

When the gets run (from a button), it comes up and says "Run-time error "3071": 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 code stops on a DOCMD.OPENREPORT (both report options give the error) statement that runs the report.
This has nothing to do with a complex expression (does it?)

Here's the code:

Run_Report:

...

'Run the report w/criteria
If strcrit9 <> "" Then
strwhere = strwhere & strcrit9 & " AND "
ListBoxWhereClause = Len(strwhere)
ListBoxWhereClause = ListBoxWhereClause - 5
strwhere = Left(strwhere, ListBoxWhereClause)
DoCmd.OpenReport stDocName, View:=acViewPreview, WhereCondition:=strwhere
rs3.Close
Exit Sub
Else
'Run the report wo/criteria
DoCmd.OpenReport stDocName, View:=acViewPreview
rs1.Close
rs2.Close
Exit Sub
End If

Also..
When I exit out of the same application (via an exit button on my switchboard) I get the strangest message. "The Microsoft Jet database engine cannot open the file 'Path\db1.mdb'. It is already opened exclusively by another user or you need permission to view its data.

I am not using db1.mdb. That is not the name of my appl! Nor am I creating an .mdb name "db1"!

So wherre is that coming from? Remember, this works fine on my pc and server.

Lost and Frustrated
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,221,532
Messages
6,160,381
Members
451,643
Latest member
nachohoyu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top