link unbound textbox to totals in a query

mev2018

New Member
Joined
Jul 5, 2018
Messages
7
I was hoping this would be an easy one to solve, but nothing has worked. The basics of what I have setup:


1. I have a query created which displays all records of one field from my main table called 'serious incidents'

2. The query has a running total of the number of records.

3. on a report which has my pie chart - this is a chart related to my query, I wanted to link an unbound textbox to the totals field in the query, but being a query, the field doesn't exist.


I am seeking some advice on what to do as it seems my attempts has been futile.

I have tried COUNT and DCOUNT of the related field called 'related incidents' but I either get an error most of the time. Any help is appreciated.

Wayne
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
If the form is continuous,and shows all records,
in the form footer,put a textbox.
source= Count(field)
 
Upvote 0
If the form is continuous,and shows all records,
in the form footer,put a textbox.
source= Count(field)

Thank you for your reply, I managed to solve it, I was a bit silly and forgot to add (*) to my code for dcount.

Thanks
Wayne
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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