Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I remove the green background from Access 2007 checkboxes which are unchecked?

Posted on 2010-09-24
9
Medium Priority
?
327 Views
Last Modified: 2012-05-10

Please see the attached file. In reference to the boxes that are unchecked, you see that some have a green background and some have a white background. 2 Questions:
1) Why are some green and some white?
2) How do I set all unchecked boxes to have a white background?

Thanks.

Checkboxes.docx
0
Comment
Question by:newbie46
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 33756286
that means, the check box is in Null state not -1 and not 0

try setting the Triple state property of the check box to NO
0
 
LVL 75
ID: 33756287
Can you post a Doc instead of DOCX?

My guess ...

You can't set the bg of a check box, at least in in A2003.

It may be that the Green ones have never been click on ...?

mx
0
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 664 total points
ID: 33756292
Have not been clicked on or initialized to False (or True)

mx
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:newbie46
ID: 33756313
capricorn1,
Triple state is already set to no.
0
 

Author Comment

by:newbie46
ID: 33756325
Also, in the table, the default value for this field is set to 0.
0
 

Author Comment

by:newbie46
ID: 33756344
DatabaseMX,
I cannot post a Doc file. Maybe before I display this form, I can loop through all records and set the nulls to 0.
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 668 total points
ID: 33756361
set them all to False
0
 
LVL 10

Assisted Solution

by:Michael Vasilevsky
Michael Vasilevsky earned 668 total points
ID: 33756369
Maybe set the default value of the form control to false? Or as MX said initialize to false on form open:

    Dim frm As Form, ctl As Control  
    Set frm = Forms!MyForm
   
    For Each ctl In frm
            Case Is = acCheckBox
                ctl.Value = False
        End Select
    Next ctl
0
 

Author Closing Comment

by:newbie46
ID: 33756578
Question Answered
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question