?
Solved

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

Posted on 2006-11-28
5
Medium Priority
?
1,796 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 85
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 85
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 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
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…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Suggested Courses

762 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