Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    6

    Question Unanswered: Automatic txtfield value based on checkbox tickling & radio button, combobox, &listbo

    Hi!
    I'm working on a sample checklist form application.
    How should my VBA code look like when I want a corresponding textfield to have an automatic value based on tickling of a checkbox & changes color.
    Ex. chkbox1 >>> txtfld1=passed (when tickled) (txt color=BLUE)
    chkbox2 >>> txtfld2=Failed (when not tickled) (txt color=RED)
    same thing goes with the radiobutton or a combo box or checkbox...
    thanks.

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    "tickled"?

    I assume you mean when the checkbox is marked true?

    in the afterupdate event of the checkbox, evaluate it for true and perform your assignments accordingly:

    if chkYourCheckBox = -1 Then
    'do stuff for true
    else
    'do stuff for false
    end if
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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