Solved

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

Posted on 2006-11-28
5
1,758 Views
Last Modified: 2013-12-03
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
Comment
Question by:loscomp
  • 3
  • 2
5 Comments
 
LVL 84
ID: 18031511
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
 

Author Comment

by:loscomp
ID: 18036172
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
 
LVL 84
ID: 18036860
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
 

Author Comment

by:loscomp
ID: 18037331
I updated the table locations using drive letters instead of IP, and the report still didn't run correctly.
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 18037426
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now