simple question

roh_8_it_3

Registered User.
Local time
Today, 12:12
Joined
Feb 15, 2005
Messages
79
hi all

i m new to access.whenever i use a checkbox or radio button control button it shows them blurr untill i clicks on them.

i m looking for what property makes it like that.can anyone tell me that.

lot of thanks
 
That's how the control appears when it is set to NULL.
 
Thanks but is there any way that i can show the background as white.

i have other checkbox on the same form which is dispalying the background as white.

thanks
 
Here what you can do:

On the OnOpen event of the Form. set the default value of your Check box or option box to zero. Now you have to put a code in OnClick Event of the object to make it zero or one.

Here how it goes:

Private form1_OnOpen
.......

chk1.defaultvalue = 0
.......

end Sub

Private Sub chk1

if chk1.defaultvalue = 0 then
chk1.defaultvalue = -1
else
chk1.defaultvalue = 0
endif

Now if you have several checkbox or option box objects in your form, you must tell the form to cycle all object and look for this objects.
 
You can set the default value to 0 (or false) right in the data tab of the properties without using any VBA code.

Also there is no code needed in the On Click event. It automatically updates itself when clicked.
 
thanks guys,

yes no code is required on the click event as it is bind to the datatable.

i just made its default value to 0 in the VBA code though i can make the same in the properties window also.

thanks all for ur help
 

Users who are viewing this thread

Back
Top Bottom