Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Location
    Greenville, SC
    Posts
    271

    Unanswered: Make something invisible

    We have in our company what we call a no charge Work Order.
    I have Yes/No buttons for both a NoChargeWO label and a Invoice Customer label.

    If the NoChargeWO is selected (or true) I want the InvoiceCustomer button to be invisible.

    How do I write the code to do this please?

    I know I should do it in the Lost focus or On Exit of the NoChargeWO button's properties.
    Gotta to do some code

  2. #2
    Join Date
    Nov 2003
    Posts
    1,487
    In the OnClick event of Button1:

    Me.Button2.Visible = Not Me.Button1.Visible


    In the OnClick event of Button2:

    Me.Button1.Visible = Not Me.Button2.Visible



  3. #3
    Join Date
    Mar 2004
    Location
    Greenville, SC
    Posts
    271

    Not buttons

    I am sorry they are not buttons. They are check box labels.

    I will try:
    Private Sub OnClick
    If NoChargeWO=True then
    InvoiceCustomer.Invisible
    End Sub

    What am I missing?
    Gotta to do some code

  4. #4
    Join Date
    Jun 2004
    Posts
    55
    Me.InvoiceCustomer.Visible = False
    Else
    Me.InvoiceCustomer.Visible = True
    End If

  5. #5
    Join Date
    Nov 2003
    Posts
    1,487
    There you go... otherwise:

    Code:
    Private Sub OnClick
    If NoChargeWO=True then
    	 Me.InvoiceCustomer.Visible = False
    Else
    	 Me.InvoiceCustomer.Visible = True
    End If
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •