Dynamically active/disactive a field

  • Thread starter Thread starter Frédéric Cornu
  • Start date Start date
F

Frédéric Cornu

Hi !

On my form, I've got a field
which is TRUE/FALSE
dependig on this,
I d like that if it's true, another field is activated, and a default value
is added (Date() )
And if it's false, that field should stay disactivated...
How can I do this ??

Thank you !!
 
In the AfterUpdate event handler of the TrueFalse control
(which I presume is a check box), try code along the
following lines

If {youCheckBox} Then
{yourDateField}.Visible = True
{yourDateField}.Value = Date()
Else
{yourDateField}.Visible = False
{yourDateField}.Value = ""
end if

Hope That Helps
Gerald Stanley MCSD
 
Perfectly my lord !

Thank you :-)

Gerald Stanley said:
In the AfterUpdate event handler of the TrueFalse control
(which I presume is a check box), try code along the
following lines

If {youCheckBox} Then
{yourDateField}.Visible = True
{yourDateField}.Value = Date()
Else
{yourDateField}.Visible = False
{yourDateField}.Value = ""
end if

Hope That Helps
Gerald Stanley MCSD
 
Back
Top