update checkbox

A

alex

Hello,

using Access '03...

I have a checkbox that does various things on a form.

When the form loads, I want the box checked and the things that go
along with the checked box.

I set the value of the checkbox to true in the form's on load
procdure. This, however, only puts a check in the box and does not
evalate the box actually being checked. What else is needed in the
code?

thanks,
alex
 
B

Beetle

I have a checkbox that does various things on a form.

Meaning what? Is there code in the After Update (or some other)
event of the checkbox?

If so you can call it in the Load event like;

Private Sub Form_Load()

Me!chkYourCheckbox = True
chkYourCheckBox_AfterUpdate

End Sub
 
A

alex

Meaning what? Is there code in the After Update (or some other)
event of the checkbox?

If so you can call it in the Load event like;

Private Sub Form_Load()

   Me!chkYourCheckbox = True
   chkYourCheckBox_AfterUpdate

End Sub

--
_________

Sean Bailey










- Show quoted text -

Sorry guys...I didn't know I had to be specific regarding what the
checkbox did.
....anyway you figured it out (it worked). Thanks a lot.
alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top