Access adding dsum to a form. Dsum inquiry about +/- values.

HockeyDiablo

Board Regular
Joined
Apr 1, 2016
Messages
182
Little out of my wheel house, would appreciate being pointed in the right direction on how to get the desired results.

I have a form where I need to add the value for credits and subtract the ones for billing. Consumed would be the amount of the (+)credit[static] or (-)Billing[dynamic]. The form reads from the following table.


Table: Tracking
*Company "companys name"
*Status "Credits(+),Billing(-)
*Consumed "Total for the Status transaction"

dsum seems to have me confused and will not get the results I would like #name and #error is all I get.


I have attempted the dsum in the expressions builder for control source.

Never really built anything in Access but needed a small scaled one so I have been doing some research, but this is the last step I can not seem to grasp.

Thanks guys
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Adding a text field in the form header with this formula might work:
=DSum("[Consumed]";"Tracking";"[Status]='+'")-DSum("[Consumed]";"Tracking";"[Status]='-'")

good luck - steven
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top