checkbox control source fails

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,958
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I have a query which tests OK in query design, but when I use this as the control source for a check box
I get

Run-time error '2424':
The expression you entered has a field, control, or property name that Microsoft Office Access can't find.

I've tried with and without quotes around the query. Same error.

The query text is

"SELECT Table1.Task, Table1.Client FROM Table1 WHERE (((Table1.Task)='User'));"

Table1.Client is a Yes/No field.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi,

There are two ways to interpret your question.

If the query is part of the form datasource and you have bound fields, then you would only need to drag the field into the form from the fields dialog.

Otherwise, I would think if you want this to be a control source for a checkbox but it is not part of a form record source, it would need to be a query that returns a single record with a single value (yes or no).
 
Last edited:
Upvote 0
Hi Xenou

>returns a single record with a single value

Ahh.. yess, that's gotta be it! I somehow fell into a trap.
Thanks for putting me straight!

Rgds, ABB
 
Upvote 0

Forum statistics

Threads
1,221,889
Messages
6,162,624
Members
451,778
Latest member
ragananthony7911

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