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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

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