A
Argonaught
Guest
I am quite new to Access but have made myself a basic database which works fine.
The problem arises now i am trying to get it to do things i have previously done in excel.
Anyway the problem is this, i have 3 fields, "Paid For", "Sold For", and "Profit".
All i want to do is deduct the "Sold For" field from the "Paid For" field and display it in the "Profit" field.
The very last part of my problem is that i wish to have a "Total Profit" field to show the combined profits.
Below are the formula i have tryed without success:
=IF (sum ([Sold For])>0, Sum([Sold For]-[Paid For])
The second formula i tryed to shorten it:
=Sum ([Sold For]-[Paid For]) this works, but i get the same value in all my records and i need it to give a different result for each record.
I have no idea how to total all profits!
If anyone can help me it would be very much appreciated.
Cheers JA. aka Argonaught
The problem arises now i am trying to get it to do things i have previously done in excel.
Anyway the problem is this, i have 3 fields, "Paid For", "Sold For", and "Profit".
All i want to do is deduct the "Sold For" field from the "Paid For" field and display it in the "Profit" field.
The very last part of my problem is that i wish to have a "Total Profit" field to show the combined profits.
Below are the formula i have tryed without success:
=IF (sum ([Sold For])>0, Sum([Sold For]-[Paid For])
The second formula i tryed to shorten it:
=Sum ([Sold For]-[Paid For]) this works, but i get the same value in all my records and i need it to give a different result for each record.
I have no idea how to total all profits!
If anyone can help me it would be very much appreciated.
Cheers JA. aka Argonaught
Last edited: