Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Checkboxes and ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 30590 of 31576
Post > Topic >>

Checkboxes and Shadowing, Unshadowing, Highlighting

by zufie <john.marruffo@[EMAIL PROTECTED] > Jun 26, 2008 at 01:43 PM

I have a main form containing 2 checkboxes.

The respective checkboxes when checked cause the SepcialEffect
Property to make all the textboxes to appear Shadowed.

1)Although the Textboxes and Combo Boxes required to appear Shadowed
are almost the same regardless of the checkbox that is checked how do
I cause individual textboxes to appear Flat?

2)How do I cause the Textboxes and Combo Boxes to highlight upon
checking the respective checkbox?

Here is my code:

Private Sub ChckIBCCP_Click()
  Dim ctl As Control


  For Each ctl In Me.Controls
    If ctl.Tag = "Shadow1" And ChckIBCCP = True _
    And ctl.ControlType = 109 Then
        ctl.SpecialEffect = 4
    ElseIf ctl.Tag <> "Shadow1" And ctl.ControlType _
    = acTextBox Then
        ctl.SpecialEffect = 1
    End If
  Next
End Sub

Private Sub ChckOtherReferral_Click()
Dim ctl As Control


  For Each ctl In Me.Controls
    If ctl.Tag = "Shadow1" And ChckOtherReferral = True _
    And ctl.ControlType = 109 Then
        ctl.SpecialEffect = 4
    ElseIf ctl.Tag <> "Shadow1" And ctl.ControlType _
    = acTextBox Then
        ctl.SpecialEffect = 1
    End If
  Next


End Sub

Thanks,
John
 




 2 Posts in Topic:
Checkboxes and Shadowing, Unshadowing, Highlighting
zufie <john.marruffo@[  2008-06-26 13:43:53 
Re: Checkboxes and Shadowing, Unshadowing, Highlighting
Salad <oil@[EMAIL PROT  2008-06-26 21:41:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:24:46 CST 2008.