• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1810
  • Last Modified:

ERROR: "This expression is typed incorrectly, or is too complex to be evaluated..."

I get the following error when I try to run a query:
---------------------------------------------------------
"This expression is typed incorrectly, or 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."

Here is the query:
--------------------
SELECT [RMA% of Jobs Shipped by Factory].Month, [M-Order% of Jobs Shipped by Factory].[M-Orders], [RMA% of Jobs Shipped by Factory].[Open RMAs] AS [R-Orders], [M-Orders]+[R-Orders] AS [Total Quality Issues], [M-Order% of Jobs Shipped by Factory].Jobs, [Total Quality Issues]/[M-Order% of Jobs Shipped by Factory]!Jobs AS [% Quality Issues]
FROM [M-Order% of Jobs Shipped by Factory] INNER JOIN [RMA% of Jobs Shipped by Factory] ON [M-Order% of Jobs Shipped by Factory].Monthly = [RMA% of Jobs Shipped by Factory].Month;


This query is used by a report.  There are several other queries in the report that now generate this identical error message.  This query used to run just fine.  The report used to run just fine.  

But, what changed was that we moved the mdb file from one server to another.  when that happend, I updated the linked table manager to include the IP address of the location instead of the drive letter.  I thought this may be useful if anyone wanted to access the DB via VPN.  Could this have contributed?

Thanks in advance...
0
loscomp
Asked:
loscomp
  • 3
  • 2
1 Solution
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Perhaps ... and users should NEVER try to link to an Access database over a VPN, the connection is far too slow and corruption is virtually guarnateed.

If you remove the IP address does the problem go away?
0
 
loscompAuthor Commented:
Well, if you go to the linked table manager, and try to update it to the drive letter instead of the IP address, it will not allow you to do this.  Basically, it checks to see if the table is available, and if it is, then it just says "tables have been updated" or something to that effect.  In other words, as long as it can find the table, it will not let you change the location in the linked table manager.  I, personally, am not using VPN to access this.  I am on the LAN.
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
That's not accurate, you can change the table location (otherwise once you linked the tables you would never be able to link to a different set of tables).

In the Linked Table Manager check the "Always Prompt for new Location" checkbox below the table listing, then complete the relink process.
0
 
loscompAuthor Commented:
I updated the table locations using drive letters instead of IP, and the report still didn't run correctly.
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Try a compact and repair ... if a database which was functioning correctly at one time suddenly starts to exhibit odd behavior, a Compact & Repair is always a good first step. Make a copy of your database first.

If that doesn't solve your problems, try opening the query directly in the Query Design window.

If neither of those work, perhaps you could post the db to ee-stuff.com (use your EE username/password to get in) and let us download and review it. If you do this, make sure to post back in this question with a link to the download.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now