Results 1 to 9 of 9

Thread: Database problem

Threaded View

  1. #1

    Thread Starter
    Addicted Member ajames's Avatar
    Join Date
    Mar 2005
    Location
    Wales, UK
    Posts
    178

    Database problem

    Here's some code I'm using when using a data control in one of my apps:

    vb Code:
    1. Private Sub Data1_Validate(Action As Integer, Save As Integer)
    2. '(check1 is bound to "used", a yes/no statement
    3.  
    4. If Check1.Value = vbChecked Then
    5. Text1.Enabled = False
    6. Text2.Enabled = False
    7. Command1.Enabled = False
    8.  
    9. Else
    10.  
    11. Text1.Enabled = True
    12. Text2.Enabled = True
    13. Command1.Enabled = True
    14. End If
    15. End Sub

    However, when I come up to an entry that has "used" as true (and therefore, has the checkbox ticked), nothing happens. But then, when I go to another entry, the code runs, leaving the textboxes and button disabled.

    Any ideas on this will be thanked.
    Last edited by ajames; Jun 9th, 2007 at 10:38 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width