sql - "Invalid use of Null" in Access Query -
I have two pass-identical databases (the second is a copy of the first, and then modified with a different company / product information) . There is an old report that never worked out right, I had to decide. I am working on it on a database (A), but second (B) suppresses the "invalid" error.
The report query is generated by another query, which basically captures the order information and customer information. From there, due to inquiries in the question, these orders have been given that how long they were sent before, and returned the balance. The error message comes from the following code segment:
round (sum (iif (date ()) [[shahdat] is null), [line total] + (CLNG ([line total] * [Freight] [100] / 100) + [Freight Charge] - NG ([Total Payments]), 0)), 2) AS current entered
If the tap is changed to something else Given, query normally executes if I try and present any "variable is zero" code, then it throws error Tried, but the following, but to no avail.
round (sum (i.f. (nj [shippaid]), [line total] + (CLNG ([line]] * [vritexright] * 100) / 100) + [FreightCharge] -
I have one more column that leaves "null" if the shipment is zero, which is amazing The first code section works in other databases without any errors, so I am confused. I need to generate a column for unused commands, so the missing [ShipDATE] I am not working in the code, so I am at a loss. + [FreightCharge] -nz ([total payment]), 0))
(CLNG ([LineTotal] * [SalesTaxRate] * 100) / 100)
Segment is how the balance arises, and it works, it has been implemented in almost a million places in the database - the designer thought that every time the query is run Instead, the total balance is automatically generated.
The entire query code has been posted below as well. If someone can tell me in the right direction, then it will be very helpful.
CHOOSE DISTINCTROW ROUND (Symmetric (IIF ((Date () [[Date]] [ShipData] <31), [Line Total] + (CLNG ([Total Length] * [Sales] * 100) / 100) ([total payment]), 0)), 2) AS [current], round (even (iIF (date) - [shipment] is faucet), [line total] + (clan [lineal] ] * [Freightexart] * 100) / 100) + [freight charge] -nex ([total payment]), 0)), 2) running ASA unapproved, round (par (iIF ((date () ([shippard]) & Lt; 61 and (Date () - [ShipDATE]> 30), [Line Qu ] + [Freight charge] * 100) + [freight charge] -gg ([total payment]), 0)), 2) AS [31-60 days], round (even) (IIF (date () ([ShipData]) 91 and (Date () - [ShipDATE]> 60), [Line Total] + (CLNG ([Line]] * [Vwritectrite] * 100) / 100) Freight charge] -G ((total payment)), 0)), 2) AS [61-90 days], round (even (iIF ((([total payments], 0)), 2 ([total payment] ), [9] [Line] [2] [9], [Linetol] + (CLNG ([Line Total] * [Vriketaxrite] * 100) / 100) + [FreightCharge] -nz) AS [9 1 day ], Round (NJ ([Line Total]) + (CLNG (NJ ([Line Total]) * NJ ([Celsectarite] * 100) / 100) + NJ ([Freight Charge]) -NJ ([Total Payments]) , 2) AS Balance, [Receipts Aging Report Query] .company names, [receipts report Aging report]. Order date, [Receipts Aging Report Query] .Shippaid, [Receipts Reporting Aging Report]. Oderid, NJ (Round (date (- [ShipDATE]), "Null" from AS Span, [Receipts Aging Report Query] Group By [Receivable Aging Report Query] .companyname, [Receipts Aging Report Query]. Order date, [Receipts Aging Report Query] .Shipped, [Receipt Reporting Reporting] ORDEEEaving (((Round (Parallel (NJ ([Line Total]) + (CLNG (NJ ([Line Total]) * NJ ([SeltexRight]) * 100) () () () (Ng ([line +] (NZ ([LineTotal] * Nz ([SalesTaxRate] * 100) / 100) + Najj ([Freight Charge]) - NJ ([Total Payments]), 2)) & lt; 0) And (([Receivables Aging Report Query] .ShipDate is not faucet (or) (((Round (Parallel (NJ ([Line Total]) + (CLNG (NJ ([Line Total]) * NJ ([Celstexite] ) (Ng ([line total]) * ng ([freight charge]) - nj ([total payment]), 2)) gt; or (rs dd (total amount) ) (Ng ([line total]) * nj ([SalesTaxRate] * 100) / 100) + ng ([freight charge]) - nz ([total payment]), 2)) & lt; 0) And (([ Rtyasion aging report query]. SPDT) is faucet) Order by [Reporting Aging Report Query] Oderid;
Use this:
round (sum (IFF ("D", Date (), [ShipDATE]) = 0, [Linetol] + CLNG ([Line Total] * [Vriketaxrite] * 100) / 100 + [Freight Charge] -NG ([Total Payment ], 0), 0)), 2) currently unavailable
Comments
Post a Comment