DataBase - If using checkbox, how to show checkbox and value

Asked By forest8
14-Mar-10 10:58 PM
Hi there

In my database, there are instances of checkbox usage.  Is it possible to
have the checkbox and a "Yes/No" adjacent to the box?

That is, if the response is yes, I want to see a checkbox and Yes or if the
response is no, I want to see a blank box and No.

Thank you in advance.
Database
(1)
ChkYourName
(1)
ChkCheckbox
(1)
Tremors
(1)
Checkbox
(1)
Textbox
(1)
Dsiplay
(1)
Day
(1)
  Tokyo Alex replied to forest8
14-Mar-10 11:25 PM
Hi,

You could put an unbound textbox on the form in the appropriate place and
set its controlsource to:
=IIf(chkCheckbox = -1,"YES","NO")

Hope this helps,
Alex.
  Gina Whipp replied to forest8
14-Mar-10 11:30 PM
Forest8,

In an unbound text box place...

=IIf([YourCheckboxName] = True, "Yes","")

--
Gina Whipp
2010 Microsoft MVP (Access)

II

http://www.regina-whipp.com/index_files/TipList.htm

Hi there

In my database, there are instances of checkbox usage.  Is it possible to
have the checkbox and a "Yes/No" adjacent to the box?

That is, if the response is yes, I want to see a checkbox and Yes or if the
response is no, I want to see a blank box and No.

Thank you in advance.
  Al Campagna replied to forest8
14-Mar-10 11:49 PM
forest,
You wrote...
That's a bit confusing.  Sounds like you want to respond somewhere
else on the form, and then have the checkbox checked/unchecked, and also
Yes/No accordingly.
With a checkbox, checking/unchecking the box itself should be the only
response needed.

I think you mean...
it.   And, when I uncheck the box, I want to see "No" right beside it."

Place an unbound text control next to your checkbox.
Give it a Control Source of...
= IIf([chkYourName] = True, "Yes", "No")
As chkYourName is checked/unchecked, "Yes" and "No" will dsiplay
accordingly.
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html
  Duane Hookom replied to forest8
15-Mar-10 12:03 AM
You can just add a text box bound to the yes/no field and set the format
property to display yes/no. There is no need for IIf() expressions.  If you
want the text box to be read-only, set its Locked property to Yes and
Enabled to No.


--
Duane Hookom
MS Access MVP
  forest8 replied to Al Campagna
15-Mar-10 01:03 AM
Thanks to everyone who responded to my query.
Create New Account
help
Run report in one database from another database DataBase Is there a way to run a report that was built in one database from another database? I have created a fairly complex report in one database that the users of another database need to view, however, there is other functionality in the database with the report that these users should not have access to. I don't want
Link to Database - Password DataBase HI, I have two database in two different folder. One (Database A) of the folder contains all the tables only. Other one is where I use the database (Database B) everyday and the database is linking the other database that has all the tables only. I set the Database B linking to Database A
importing data from one access database to another access database DataBase How do I import selected data and selected records from one access database to another access database. The field names are not currently always the same. I want to add people from one database into another database. Only some of the fields from the first database will be used in the second database. Access Tables DB Design Discussions Database (1) Access
Open one Database from another database DataBase I want to be able to open one database from a master database. I am not sure where to begin looking for help on this. I have tried looking under open but get the one context. Any ideas? Access Tables DB Design Discussions Database (1) Application.FollowHyperlink (1) RetVal (1) Girlshawn (1) Dale (1) Fye (1) Are you really interested in opening the other database, or just using some of the data from the 2nd database in the first application? If you want to do the latter, you can link tables