473,770 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Expression Too Complex Error

5 New Member
Hi,
I'm using Access 2003 on Windows XP.

My Error:
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.

I'm guessing that one of these calcs is the problem:

Expand|Select|Wrap|Line Numbers
  1. ([AVG Per Store]/[Enter Day of Month For Pace])*31 AS [Pace Per Market], ([Sum Of SumOfGP]/[Enter Day of Month For Pace])*31 AS [Pace Per Gross Profit], ([Sum Of SumOfSELLING]/[Enter Day of Month For Pace])*31 AS [Pace Per Gross Sales], [Pace Per Gross Profit]/[CountOfmbrc_name] AS [Pace Per Store Gross Profit]
  2.  
Help?
May 31 '07 #1
9 2139
theaybaras
52 New Member
Hi,
I'm using Access 2003 on Windows XP.

My Error:
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.

I'm guessing that one of these calcs is the problem:

Expand|Select|Wrap|Line Numbers
  1. ([AVG Per Store]/[Enter Day of Month For Pace])*31 AS [Pace Per Market], ([Sum Of SumOfGP]/[Enter Day of Month For Pace])*31 AS [Pace Per Gross Profit], ([Sum Of SumOfSELLING]/[Enter Day of Month For Pace])*31 AS [Pace Per Gross Sales], [Pace Per Gross Profit]/[CountOfmbrc_name] AS [Pace Per Store Gross Profit]
  2.  
Help?
after your last comma, try adding () as in the rest of your code
Expand|Select|Wrap|Line Numbers
  1. ([Pace Per Gross Profit]/[CountOfmbrc_name]) AS [Pace Per Store Gross Profit]
rather than just
Expand|Select|Wrap|Line Numbers
  1. [Pace Per Gross Profit]/[CountOfmbrc_name] AS [Pace Per Store Gross Profit]
May 31 '07 #2
jessicaeatworld
5 New Member
Thank you for help but unfortuantely, I still received the same error.
May 31 '07 #3
jessicaeatworld
5 New Member
after your last comma, try adding () as in the rest of your code
Expand|Select|Wrap|Line Numbers
  1. ([Pace Per Gross Profit]/[CountOfmbrc_name]) AS [Pace Per Store Gross Profit]
rather than just
Expand|Select|Wrap|Line Numbers
  1. [Pace Per Gross Profit]/[CountOfmbrc_name] AS [Pace Per Store Gross Profit]
I followed your reasoning and was successful. The problem has been resolved. Thanks!
May 31 '07 #4
theaybaras
52 New Member
Great!

theAybaras
May 31 '07 #5
bahenol
6 New Member
Hi,
I'm using Access 2003 on Windows XP.im newbie and try to using the query

My Error:
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.

I'm guessing that one of these calcs is the problem:

Code: ( text )
SELECT Tbl_Rincian.IdS PD, Tbl_Rincian.NoU rut, Tbl_Rincian.NoK ode, Tbl_Rincian.NmB rg, Tbl_Rincian.Jml Psn, Tbl_Rincian.Sat uan, Tbl_Rincian.Ket , Tbl_SPD.KetSpd, Tbl_Customer.Co ntact, Tbl_Customer.Pr us, Tbl_Customer.Ko ta, Tbl_PO.TglPO, Tbl_SPD.TglSPD, Tbl_PO.NoPO, Tbl_SPD.NoSPD, Tbl_Rincian.Dis kon, Tbl_Rincian.Ppn , [Hargasat]*[jmlpsn] AS TotalHrg, Sum(IIf([PPN]=True,([jmlpsn]*[hargasat]/1.1)*((100-[diskon])/100),([jmlpsn]*[hargasat])*((100-[diskon])/100))) AS Netto, Tbl_Rincian.Har gaSat, Tbl_Customer.Id Cust, Tbl_PIC.idPic, Tbl_PIC.NmPerso n
FROM ((Tbl_Customer INNER JOIN Tbl_PO ON Tbl_Customer.Id Cust = Tbl_PO.idCust) INNER JOIN (Tbl_PIC INNER JOIN Tbl_SPD ON Tbl_PIC.idPic = Tbl_SPD.idPIC) ON Tbl_PO.NoPO = Tbl_SPD.idPO) INNER JOIN Tbl_Rincian ON Tbl_SPD.NoSPD = Tbl_Rincian.IdS PD
GROUP BY Tbl_Rincian.IdS PD, Tbl_Rincian.NoU rut, Tbl_Rincian.NoK ode, Tbl_Rincian.NmB rg, Tbl_Rincian.Jml Psn, Tbl_Rincian.Sat uan, Tbl_Rincian.Ket , Tbl_SPD.KetSpd, Tbl_Customer.Co ntact, Tbl_Customer.Pr us, Tbl_Customer.Ko ta, Tbl_PO.TglPO, Tbl_SPD.TglSPD, Tbl_PO.NoPO, Tbl_SPD.NoSPD, Tbl_Rincian.Dis kon, Tbl_Rincian.Ppn , [Hargasat]*[jmlpsn], Tbl_Rincian.Har gaSat, Tbl_Customer.Id Cust, Tbl_PIC.idPic, Tbl_PIC.NmPerso n;

Help...
Aug 27 '07 #6
FishVal
2,653 Recognized Expert Specialist
Hi,
I'm using Access 2003 on Windows XP.im newbie and try to using the query

My Error:
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.

I'm guessing that one of these calcs is the problem:

Code: ( text )
SELECT Tbl_Rincian.IdS PD, Tbl_Rincian.NoU rut, Tbl_Rincian.NoK ode, Tbl_Rincian.NmB rg, Tbl_Rincian.Jml Psn, Tbl_Rincian.Sat uan, Tbl_Rincian.Ket , Tbl_SPD.KetSpd, Tbl_Customer.Co ntact, Tbl_Customer.Pr us, Tbl_Customer.Ko ta, Tbl_PO.TglPO, Tbl_SPD.TglSPD, Tbl_PO.NoPO, Tbl_SPD.NoSPD, Tbl_Rincian.Dis kon, Tbl_Rincian.Ppn , [Hargasat]*[jmlpsn] AS TotalHrg, Sum(IIf([PPN]=True,([jmlpsn]*[hargasat]/1.1)*((100-[diskon])/100),([jmlpsn]*[hargasat])*((100-[diskon])/100))) AS Netto, Tbl_Rincian.Har gaSat, Tbl_Customer.Id Cust, Tbl_PIC.idPic, Tbl_PIC.NmPerso n
FROM ((Tbl_Customer INNER JOIN Tbl_PO ON Tbl_Customer.Id Cust = Tbl_PO.idCust) INNER JOIN (Tbl_PIC INNER JOIN Tbl_SPD ON Tbl_PIC.idPic = Tbl_SPD.idPIC) ON Tbl_PO.NoPO = Tbl_SPD.idPO) INNER JOIN Tbl_Rincian ON Tbl_SPD.NoSPD = Tbl_Rincian.IdS PD
GROUP BY Tbl_Rincian.IdS PD, Tbl_Rincian.NoU rut, Tbl_Rincian.NoK ode, Tbl_Rincian.NmB rg, Tbl_Rincian.Jml Psn, Tbl_Rincian.Sat uan, Tbl_Rincian.Ket , Tbl_SPD.KetSpd, Tbl_Customer.Co ntact, Tbl_Customer.Pr us, Tbl_Customer.Ko ta, Tbl_PO.TglPO, Tbl_SPD.TglSPD, Tbl_PO.NoPO, Tbl_SPD.NoSPD, Tbl_Rincian.Dis kon, Tbl_Rincian.Ppn , [Hargasat]*[jmlpsn], Tbl_Rincian.Har gaSat, Tbl_Customer.Id Cust, Tbl_PIC.idPic, Tbl_PIC.NmPerso n;

Help...
Hi, there.

In math expressions Truth = -1, False = 0. Try to use this to get rid of IIf().
e.g., instesd of
Expand|Select|Wrap|Line Numbers
  1. Sum(IIf([PPN]=True,([jmlpsn]*[hargasat]/1.1)*((100-[diskon])/100),([jmlpsn]*[hargasat])*((100-[diskon])/100))) AS Netto
  2.  
Expand|Select|Wrap|Line Numbers
  1. Sum([jmlpsn]*[hargasat]/(1-[PPN]*0.1)*((100-[diskon])/100)) AS Netto
  2.  
Aug 27 '07 #7
bahenol
6 New Member
thank you for your respond...


I try to use the formula... in some case working properly..but if the hargasat value more than 8 digits number... the error message displayed


I use the LONG INTEGER for all number datatype for hargasat,jmlpsn and diskon, I need more solution to resolve the problem... thank you
Aug 28 '07 #8
bahenol
6 New Member
I already changed FieldSize hargasat from LONG INTEGER to DOUBLE , its working... and the problem solved...
thanks
Aug 28 '07 #9
FishVal
2,653 Recognized Expert Specialist
I already changed FieldSize hargasat from LONG INTEGER to DOUBLE , its working... and the problem solved...
thanks
You are welcome.

Regards,
Fish
Aug 28 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

39
7888
by: | last post by:
I am trying to run the following agregate function in a parameterized query on Access2000: Min(.*sqr(./.)/) The query saved OK, but an attempt to run it results in the message: The expression is typed incorrectly or it is too complex to be evaluated If the sintax correct? Perhaps it is, otherwise it would not save. What can be done about it?
3
2029
by: Tom | last post by:
I have struggled with the issue of whether or not to use Regular Expressions for a long time now, and after implementing many text manipulating solutions both ways, I've found that writing specialized code instead of an RE is almost always the better solution. Here is why.... RE's are complex. Sure it is one line of code, but it is on hell of a line. Some of my RE remind me of the obfuscated code contest winners, where one line of...
2
6078
by: Mikel | last post by:
I am trying to get around the problem "The expression you have entered is too complex" for a select query. (The example below is not the expression that is giving me headaches.) So I am thinking that I just need to do the parsing and calculating in an event procedure for an "On Click" event. My question is: If I have a query field in access97 that parses date (in format
9
6215
by: Dr. Paul Bremmer, PhD | last post by:
Dear Access experts: Access is returning the error, "Expression too complex," despite only entering an absurdly simple math function. Is there a way to simplify this any further, or perhaps augment the Access execution limits? ( ( ( z - ( z ^ ( ( ( ( 3 + c ) + x ) + 3 ) ^ ( ( ( ( i - ( y* x ) )* ( 7* ( ( b/ ( z - ( a - z ) ) ) ^ ( ( ( x - z ) ^ ( ( ( ( ( ( x ^ ( ( 7* ( ( 4 - i ) - ( 4 - ( ( y* x )* y ) ) ) ) + ( ( y/ ( y + ( ( ( 4 - 3...
1
2537
by: Laertes | last post by:
Hi, I want to use the expression builder in a query to define a field. I know how to do it for simple fields, like the one below : orderdate: IIf((IsNull() And =False) Or (<>"N/A" And =False),,) When though the expression is too complex, the builder is not very convenient to use. I tried to use a function instead... The error I
28
16423
by: Marc Gravell | last post by:
In Linq, you can apparently get a meaningful body from and expression's .ToString(); random question - does anybody know if linq also includes a parser? It just seemed it might be a handy way to write a safe but easy implementation (i.e. no codedom) for an IBindingListView.Filter (by compiling to a Predicate<T>). Anybody know if this is possible at all? Marc
1
23431
by: urkel | last post by:
Hi everyone, I critically need help to solve this problem related to pointer in C++ Basically, I have a C/C++ program "retardselfenerg" calling a Fortran 90 subroutine "surfGF4.f90". i am so doubtful if my definitions of pointer variables and their use in calling function are correct. #include<bla bla bla......h> #include<bla bla bla.h> double surfGF4_(double*, double*, double*, double*, double*, double*, double*, double*, double*); ...
19
3645
by: kawaks40 | last post by:
Hi everyone :) I just recently started using access/sql. and right away I ran into this problem "SQL expression too complex" I google'd a lot on what it means, and the only workaround I've seen sofar, is to just rewrite my code/query. Situation: I am sorting forms into the way they are used (print,storage,readonly,etc...).
18
7975
by: dspfun | last post by:
Hi! The words "expression" and "statement" are often used in C99 and C- textbooks, however, I am not sure of the clear defintion of these words with respect to C. Can somebody provide a sharp defintion of "expression" and "statement"? What is the difference between an expression and a statement?
0
9602
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10237
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.