473,473 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Create 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 2118
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.IdSPD, Tbl_Rincian.NoUrut, Tbl_Rincian.NoKode, Tbl_Rincian.NmBrg, Tbl_Rincian.JmlPsn, Tbl_Rincian.Satuan, Tbl_Rincian.Ket, Tbl_SPD.KetSpd, Tbl_Customer.Contact, Tbl_Customer.Prus, Tbl_Customer.Kota, Tbl_PO.TglPO, Tbl_SPD.TglSPD, Tbl_PO.NoPO, Tbl_SPD.NoSPD, Tbl_Rincian.Diskon, 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.HargaSat, Tbl_Customer.IdCust, Tbl_PIC.idPic, Tbl_PIC.NmPerson
FROM ((Tbl_Customer INNER JOIN Tbl_PO ON Tbl_Customer.IdCust = 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.IdSPD
GROUP BY Tbl_Rincian.IdSPD, Tbl_Rincian.NoUrut, Tbl_Rincian.NoKode, Tbl_Rincian.NmBrg, Tbl_Rincian.JmlPsn, Tbl_Rincian.Satuan, Tbl_Rincian.Ket, Tbl_SPD.KetSpd, Tbl_Customer.Contact, Tbl_Customer.Prus, Tbl_Customer.Kota, Tbl_PO.TglPO, Tbl_SPD.TglSPD, Tbl_PO.NoPO, Tbl_SPD.NoSPD, Tbl_Rincian.Diskon, Tbl_Rincian.Ppn, [Hargasat]*[jmlpsn], Tbl_Rincian.HargaSat, Tbl_Customer.IdCust, Tbl_PIC.idPic, Tbl_PIC.NmPerson;

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.IdSPD, Tbl_Rincian.NoUrut, Tbl_Rincian.NoKode, Tbl_Rincian.NmBrg, Tbl_Rincian.JmlPsn, Tbl_Rincian.Satuan, Tbl_Rincian.Ket, Tbl_SPD.KetSpd, Tbl_Customer.Contact, Tbl_Customer.Prus, Tbl_Customer.Kota, Tbl_PO.TglPO, Tbl_SPD.TglSPD, Tbl_PO.NoPO, Tbl_SPD.NoSPD, Tbl_Rincian.Diskon, 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.HargaSat, Tbl_Customer.IdCust, Tbl_PIC.idPic, Tbl_PIC.NmPerson
FROM ((Tbl_Customer INNER JOIN Tbl_PO ON Tbl_Customer.IdCust = 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.IdSPD
GROUP BY Tbl_Rincian.IdSPD, Tbl_Rincian.NoUrut, Tbl_Rincian.NoKode, Tbl_Rincian.NmBrg, Tbl_Rincian.JmlPsn, Tbl_Rincian.Satuan, Tbl_Rincian.Ket, Tbl_SPD.KetSpd, Tbl_Customer.Contact, Tbl_Customer.Prus, Tbl_Customer.Kota, Tbl_PO.TglPO, Tbl_SPD.TglSPD, Tbl_PO.NoPO, Tbl_SPD.NoSPD, Tbl_Rincian.Diskon, Tbl_Rincian.Ppn, [Hargasat]*[jmlpsn], Tbl_Rincian.HargaSat, Tbl_Customer.IdCust, Tbl_PIC.idPic, Tbl_PIC.NmPerson;

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
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...
3
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...
2
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...
9
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...
1
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...
28
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...
1
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...
19
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...
18
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...
0
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,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.