running totals

M

Melinda

I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
D

Duane Hookom

If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]
 
M

Melinda

Duane--The txtrunsum worked for the total cost, but subtracting it from the
encumbered amount of the purchase order doesn't work. When I switch over to
Print Preview it prompts me to "Enter Parameter Value--txtRunSum" Do I need
to create a header with my encumbered beginning balance?

Duane Hookom said:
If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


Melinda said:
I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
D

Duane Hookom

Did you create these new text boxes in the same report section?
--
Duane Hookom
Microsoft Access MVP


Melinda said:
Duane--The txtrunsum worked for the total cost, but subtracting it from the
encumbered amount of the purchase order doesn't work. When I switch over to
Print Preview it prompts me to "Enter Parameter Value--txtRunSum" Do I need
to create a header with my encumbered beginning balance?

Duane Hookom said:
If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


Melinda said:
I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
M

Melinda

I don't think I replied, so forgive me if I have. I put the two text boxes
in the report
in the detail section. The txtrunsum runs great with the correct results.
The TxtRunBalance I get a box to enter a Parameter Value tstrunsum---I have
been messing around with it and when I enter to bypass the prompt and I have
a running sum over the group it adds the balance of the first line for an
outrageous number.


Duane Hookom said:
If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


Melinda said:
I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
M

Melinda

Yes I put them in the detail section

Duane Hookom said:
Did you create these new text boxes in the same report section?
--
Duane Hookom
Microsoft Access MVP


Melinda said:
Duane--The txtrunsum worked for the total cost, but subtracting it from the
encumbered amount of the purchase order doesn't work. When I switch over to
Print Preview it prompts me to "Enter Parameter Value--txtRunSum" Do I need
to create a header with my encumbered beginning balance?

Duane Hookom said:
If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


:

I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
D

Duane Hookom

The controls need to be in the same section of the report.

Does your report group by Purchase Order Number?

"tstrunsum" should be txtRunSum

--
Duane Hookom
Microsoft Access MVP


Melinda said:
I don't think I replied, so forgive me if I have. I put the two text boxes
in the report
in the detail section. The txtrunsum runs great with the correct results.
The TxtRunBalance I get a box to enter a Parameter Value tstrunsum---I have
been messing around with it and when I enter to bypass the prompt and I have
a running sum over the group it adds the balance of the first line for an
outrageous number.


Duane Hookom said:
If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


Melinda said:
I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
M

Melinda

Correct, I am grouping by purchase order. Sorry, I had it typed in
txtRunSum, I just can't retype it correctly. I have checked all my spelling
to be sure it matches, but not sure where the error is.

Duane Hookom said:
The controls need to be in the same section of the report.

Does your report group by Purchase Order Number?

"tstrunsum" should be txtRunSum

--
Duane Hookom
Microsoft Access MVP


Melinda said:
I don't think I replied, so forgive me if I have. I put the two text boxes
in the report
in the detail section. The txtrunsum runs great with the correct results.
The TxtRunBalance I get a box to enter a Parameter Value tstrunsum---I have
been messing around with it and when I enter to bypass the prompt and I have
a running sum over the group it adds the balance of the first line for an
outrageous number.


Duane Hookom said:
If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


:

I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
D

Duane Hookom

Tell us exactly what you now have for controls, control sources, sections, etc.
--
Duane Hookom
Microsoft Access MVP


Melinda said:
Yes I put them in the detail section

Duane Hookom said:
Did you create these new text boxes in the same report section?
--
Duane Hookom
Microsoft Access MVP


Melinda said:
Duane--The txtrunsum worked for the total cost, but subtracting it from the
encumbered amount of the purchase order doesn't work. When I switch over to
Print Preview it prompts me to "Enter Parameter Value--txtRunSum" Do I need
to create a header with my encumbered beginning balance?

:

If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


:

I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
M

Melinda

I don't know if I missed your reply, but I have tried several different ways
and nothing seems to work. The txtRunSum worked so sweet, it is odd that the
TxtRunBalance won't run a sum. thanks again

Melinda said:
Correct, I am grouping by purchase order. Sorry, I had it typed in
txtRunSum, I just can't retype it correctly. I have checked all my spelling
to be sure it matches, but not sure where the error is.

Duane Hookom said:
The controls need to be in the same section of the report.

Does your report group by Purchase Order Number?

"tstrunsum" should be txtRunSum

--
Duane Hookom
Microsoft Access MVP


Melinda said:
I don't think I replied, so forgive me if I have. I put the two text boxes
in the report
in the detail section. The txtrunsum runs great with the correct results.
The TxtRunBalance I get a box to enter a Parameter Value tstrunsum---I have
been messing around with it and when I enter to bypass the prompt and I have
a running sum over the group it adds the balance of the first line for an
outrageous number.


:

If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


:

I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
D

Duane Hookom

I just created a quick test of this in the Northwind using the Order Details
table. My report's record source is:
SELECT [Order Details].*, 1000 AS Encumbered
FROM [Order Details];
I grouped my report by OrderID with Header and Footer. I created a text box
in the detail section:
Name: txtRunSum
Control Source:=[Quantity]*[UnitPrice]
Running Sum: Over Group
I then created another text box in the detail section:
Control Source: =[Encumbered]-[txtRunSum]
This worked exactly as expected with each order detail line subtracting its
cost from the Encumbered value.
--
Duane Hookom
Microsoft Access MVP


Melinda said:
I don't know if I missed your reply, but I have tried several different ways
and nothing seems to work. The txtRunSum worked so sweet, it is odd that the
TxtRunBalance won't run a sum. thanks again

Melinda said:
Correct, I am grouping by purchase order. Sorry, I had it typed in
txtRunSum, I just can't retype it correctly. I have checked all my spelling
to be sure it matches, but not sure where the error is.

Duane Hookom said:
The controls need to be in the same section of the report.

Does your report group by Purchase Order Number?

"tstrunsum" should be txtRunSum

--
Duane Hookom
Microsoft Access MVP


:

I don't think I replied, so forgive me if I have. I put the two text boxes
in the report
in the detail section. The txtrunsum runs great with the correct results.
The TxtRunBalance I get a box to enter a Parameter Value tstrunsum---I have
been messing around with it and when I enter to bypass the prompt and I have
a running sum over the group it adds the balance of the first line for an
outrageous number.


:

If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


:

I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 
M

Melinda

I finally got it to work, thanks for all your help.

Duane Hookom said:
I just created a quick test of this in the Northwind using the Order Details
table. My report's record source is:
SELECT [Order Details].*, 1000 AS Encumbered
FROM [Order Details];
I grouped my report by OrderID with Header and Footer. I created a text box
in the detail section:
Name: txtRunSum
Control Source:=[Quantity]*[UnitPrice]
Running Sum: Over Group
I then created another text box in the detail section:
Control Source: =[Encumbered]-[txtRunSum]
This worked exactly as expected with each order detail line subtracting its
cost from the Encumbered value.
--
Duane Hookom
Microsoft Access MVP


Melinda said:
I don't know if I missed your reply, but I have tried several different ways
and nothing seems to work. The txtRunSum worked so sweet, it is odd that the
TxtRunBalance won't run a sum. thanks again

Melinda said:
Correct, I am grouping by purchase order. Sorry, I had it typed in
txtRunSum, I just can't retype it correctly. I have checked all my spelling
to be sure it matches, but not sure where the error is.

:

The controls need to be in the same section of the report.

Does your report group by Purchase Order Number?

"tstrunsum" should be txtRunSum

--
Duane Hookom
Microsoft Access MVP


:

I don't think I replied, so forgive me if I have. I put the two text boxes
in the report
in the detail section. The txtrunsum runs great with the correct results.
The TxtRunBalance I get a box to enter a Parameter Value tstrunsum---I have
been messing around with it and when I enter to bypass the prompt and I have
a running sum over the group it adds the balance of the first line for an
outrageous number.


:

If I understand correctly, it would be easiest to do this in a report. Create
a text box
Name: txtRunSum
Control Source: =[quantity]*[priceperunit]
Running Sum: Over Group
Visible: No
Then create another text box:
Name: txtRunBalance
Control Source: =[Encumbered]-[txtRunSum]

--
Duane Hookom
Microsoft Access MVP


:

I am fairly new to access, so I am hoping this question is clear. I have
searched through the forums, but can't quite find what I am looking for. I
have an encumbered amount on a purchase order, ie $70,000.00. I want
everything I have purchased against that paticular purchase order to be
subtracted so that I know what my balance would be. Would the proper way to
do this be in a query or in a report? Kind of like a checkbook register is
what I want to mimick. [quantity]*[priceperunit] - the [encumbered] amount
of the purchase order. Thanks
Melinda
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Iif Statements 1
Null Values in Reports 0
null values in reports 7
Reports 6
Two Queries 0
Running Sum with conditions 0
Order Totals (From Expression) on summary report 0
Conditional Running Sum 0

Top