dbTalk Databases Forums  

how to get yes/no field to display a checkbox in a combobox

comp.databases.ms-access comp.databases.ms-access


Discuss how to get yes/no field to display a checkbox in a combobox in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bobh
 
Posts: n/a

Default how to get yes/no field to display a checkbox in a combobox - 06-10-2010 , 09:03 AM






Hi All,

In AccessXP how to get yes/no field to display a checkbox in a
combobox??

I have a combobox on a form and it displays several fields of
information, one of those fields is a yes/no field. If I open the
table directly that yes/no field displays as a checkbox on the screen.
When I open the form and click on the combobox to open it the field
displays with the words true or false instead of displaying as a
checkbox.

Can a yes/no field be displayed as a checkbox(as it does when the open
is opened directly) in a combobox??

thanks
bobh.

Reply With Quote
  #2  
Old   
Douglas J. Steele
 
Posts: n/a

Default Re: how to get yes/no field to display a checkbox in a combobox - 06-10-2010 , 09:26 AM






I don't believe it's possible.

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"bobh" <vulcaned (AT) yahoo (DOT) com> wrote

Quote:
Hi All,

In AccessXP how to get yes/no field to display a checkbox in a
combobox??

I have a combobox on a form and it displays several fields of
information, one of those fields is a yes/no field. If I open the
table directly that yes/no field displays as a checkbox on the screen.
When I open the form and click on the combobox to open it the field
displays with the words true or false instead of displaying as a
checkbox.

Can a yes/no field be displayed as a checkbox(as it does when the open
is opened directly) in a combobox??

thanks
bobh.

Reply With Quote
  #3  
Old   
James A. Fortune
 
Posts: n/a

Default Re: how to get yes/no field to display a checkbox in a combobox - 06-10-2010 , 11:24 AM



On Jun 10, 10:03*am, bobh <vulca... (AT) yahoo (DOT) com> wrote:
Quote:
Hi All,

In AccessXP how to get yes/no field to display a checkbox in a
combobox??

I have a combobox on a form and it displays several fields of
information, one of those fields is a yes/no field. If I open the
table directly that yes/no field displays as a checkbox on the screen.
When I open the form and click on the combobox to open it the field
displays with the words true or false instead of displaying as a
checkbox.

Can a yes/no field be displayed as a checkbox(as it does when the open
is opened directly) in a combobox??

thanks
bobh.
As Douglas stated, what you want is not built into Access.

How badly do you need to see the checkbox display? Maybe create a
query, then base a form in datasheet view on that query (perhaps
called frmDataSubform). Perhaps disable the scrollbars and navigation
buttons. Then create a subform on the main form that has
frmDataSubform as a Source Object. Change AllowEdits on the subform
to 'No' if you don't want the user to be able to edit the data shown.
Then use something like the click event of a field on the subform to
populate a textbox or a checkbox on the main form. It's ugly, but
sometimes ugly is necessary to achieve the look you want :-). Further
legerdemain may be possible with creative use of the subform control's
Visible property.

James A. Fortune
CDMAPoster (AT) FortuneJames (DOT) com

Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: how to get yes/no field to display a checkbox in a combobox - 06-10-2010 , 11:28 AM



bobh wrote:

Quote:
Hi All,

In AccessXP how to get yes/no field to display a checkbox in a
combobox??

I have a combobox on a form and it displays several fields of
information, one of those fields is a yes/no field. If I open the
table directly that yes/no field displays as a checkbox on the screen.
When I open the form and click on the combobox to open it the field
displays with the words true or false instead of displaying as a
checkbox.

Can a yes/no field be displayed as a checkbox(as it does when the open
is opened directly) in a combobox??

thanks
bobh.
I agree with Doug. That's combining text with graphic. Not sure why
anyone would want to display a checkbox either in a combo. I prefer
doing something like
Done:IIF([Completed],"Yes","No") in the rowsource query and having
headings on.

Reply With Quote
  #5  
Old   
David W. Fenton
 
Posts: n/a

Default Re: how to get yes/no field to display a checkbox in a combobox - 06-10-2010 , 01:06 PM



Salad <salad (AT) oilandvinegar (DOT) com> wrote in
news:u6qdnYzCYeFXj4zRnZ2dnUVZ_v2dnZ2d (AT) earthlink (DOT) com:

Quote:
Done:IIF([Completed],"Yes","No") in the rowsource query and
having
headings on.
I go with IIf(Completed,"x",""), which is pretty close to a
checkbox.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/

Reply With Quote
  #6  
Old   
Salad
 
Posts: n/a

Default Re: how to get yes/no field to display a checkbox in a combobox - 06-10-2010 , 01:16 PM



David W. Fenton wrote:
Quote:
Salad <salad (AT) oilandvinegar (DOT) com> wrote in
news:u6qdnYzCYeFXj4zRnZ2dnUVZ_v2dnZ2d (AT) earthlink (DOT) com:


Done:IIF([Completed],"Yes","No") in the rowsource query and
having
headings on.


I go with IIf(Completed,"x",""), which is pretty close to a
checkbox.

Excellent. Maybe pad with spaces to center it.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.