Solved

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

Posted on 2006-11-28
5
1,756 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

706 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

19 Experts available now in Live!

Get 1:1 Help Now