Linds wrote:
When a customer has made a down payment I would like to be able to have
check box that when checked opens another text box that displays
today's date and lock it in.
Where would I go about telling a text box to only be available if
another check box is checked. Thanks, Lindsey
Let's say your checkbox is called Check1 and the text box is called
Text1. Let's further assume you want the text box to be visible or
Enabled/Locked can enter data or Enabled/Locked can't enter data. In
the checkbox's AfterUpdate event, enter something like.
If ILikeVisible then
'make it visible or hidden
Me.Text1.Visible = Me.Check1
Else
'enable or disable field
Me.Text1.Enabled = Me.Check1
Me.Text1.Locked = (Not Me.Check1)
Endif
If Me.Check1 then
Me.Text1 = Date
Else
'this clears the date. Not sure how you want to handle
'if it was checked and later on you uncheck it.
Me.Text1 = Null
Endif