Check Box

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Hello, I have a 3 checkboxes in a form with 3 textboxes
right next to them, what I would like to happen is when a
user clicks on the first checkbox the textbox populates
with the current date, then say for instance the user
comes back tomorrow and clicks on the second checkbox the
second textbox populates with the current date. Is this
possible?
 
It's not hard to cause a click on a checkbox to populate a textbox, e.g.
Private Sub CheckBox1_Click()
TextBox1=Date()
End Sub

You can write code like this for each checkbox/textbox combination.

However, your specifications are rather incomplete.
Do you want the date entered whether the user is turning the checkmark on or
off?
(both can be done with clicks)
Does clicking any one checkbox have any affect on the other checkboxes or
textboxes?
Is there a limit on how many checkboxes can be set to on at the same time?

It's usually a good idea to complete your design specifications before
getting into the details of implementation.

HTH
- Turtle
 
Back
Top