append query problem

sibbbra

Member
Local time
Today, 17:25
Joined
Feb 11, 2022
Messages
78
hi ,when append query, C-Add, is invoked, it should calculate Amount_Sale present on Form Main respective to the customer, but thats not i am getting. it gets without discount. i tried to set it but in vain. that can be checked in customer orders by customer report
any help
 
1672216848598.png
 
Balance should be equal to amnt net
 
Simple percentages are part of standard schooling, not a specific programming problem.
Code:
100 percent - 10 percent = 90 percent

or implemented
Code:
AmntSale * ((100 - Discnt) / 100)
 
Simple percentages are part of standard schooling, not a specific programming problem.
Code:
100 percent - 10 percent = 90 percent

or implemented
Code:
AmntSale * ((100 - Discnt) / 100)
thanks for reply. kindly tell me how to work that out in sample attached db
 
what do you expect?
there is no sample Data on the table for orders, tblorderproduct and tblorderpayment.
 
what do you expect?
there is no sample Data on the table for orders, tblorderproduct and tblorderpayment.
In append query , C-Add, in the last field, i.e
line total: [Rate_Amount]*[Quantity_Sold]
i want to get this instead

line total: ([Rate_Amount]-[Customers]![Discount_C]*[Rate_Amount]/100)*[Quantity_Sold]

But when i do so, the sub reports in Customer_Orders report Disappear i.e. The details appear, even though the Amount_Sale is updated correctly
plz help
I have uploaded with some data below
 

Attachments

Since you are unwilling/unable to participate, perhaps, you should offer to hire someone to solve your unspecified problems.
 
Hi
Your database needs to be looked at again to normalise your "Orders" table

It contains what are known as Repeating Groups- See screenshot attached.

Your tblorderproducts has no PK and it contains Lookup fields.
It looks like you have made a simple Customer - Orders - Items process into a very complicated process.

For those that download the Database I attached all I did on the final Report was add the calculated field to one of the SubReports
and then made a Reference to that Control on the Main Report to show the Balance.
 

Attachments

  • RepeatingGroups.PNG
    RepeatingGroups.PNG
    15.1 KB · Views: 124

Users who are viewing this thread

Back
Top Bottom