Results 1 to 4 of 4

Thread: Fast Love. I mean Help. (Solved)

  1. #1

    Thread Starter
    Addicted Member Bazzlad's Avatar
    Join Date
    Jun 2003
    Posts
    227

    Question Fast Love. I mean Help. (Solved)

    Right, I'll set the scene.
    Coding a Access Database. Using VBA.

    The question:
    On a form, how can I make an IF statement record specific, instead of form specific?

    EG

    Private Sub Contacted_Owner_Click()
    If Contacted_Owner.Value = no Then
    Repair_Agreed.Visible = False
    Combo17.SetFocus
    Else

    Repair_Agreed.Visible = True
    Command39.Visible = False
    Label40.Visible = False

    End If

    End Sub

    Works. Until I scan through the records. When I do that it keeps the FIRST records value.

    Quick help would be good
    I know I'm missing something REALLY simple.....
    Bazz
    Last edited by Bazzlad; Jun 30th, 2003 at 04:30 AM.
    *And you'll see, Everything you stand for is fake*
    http://www.rhesusrock.com

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    If Contacted_Owner.Value = no Then
    Repair_Agreed.Visible = False
    Combo17.SetFocus
    Else

    Repair_Agreed.Visible = True
    Command39.Visible = False
    Label40.Visible = False

    End If
    put that code in your forms On_Current event instead of a command button.. for each records that even will fire and trigger the code.

    Cheers

  3. #3

    Thread Starter
    Addicted Member Bazzlad's Avatar
    Join Date
    Jun 2003
    Posts
    227

    ???

    It isn't working!????!!!
    Arggghh help!
    Bazz
    *And you'll see, Everything you stand for is fake*
    http://www.rhesusrock.com

  4. #4

    Thread Starter
    Addicted Member Bazzlad's Avatar
    Join Date
    Jun 2003
    Posts
    227

    ?

    Ok it's working now....alhough it wasn't???!!!???
    Thanks for your help!
    Bazz
    *And you'll see, Everything you stand for is fake*
    http://www.rhesusrock.com

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