S
Sandy
I have the following :
Form - 'frm_Contact_Complete'
with - 'txtDateRequired'
Subform - 'subfrm_Job_Complete'
with - 'txtReadyOn' and 'txtWhyDelayed'
and the code :
"Private Sub txtReadyOn_AfterUpdate()
If txtReadyOn > Forms!frm_Contact_Complete.txtRequiredBy Then
Me.txtWhyDelayed.Visible = True
Me.lblWhyDelayed.Visible = True
Else
Me.txtWhyDelayed.Visible = False
Me.lblWhyDelayed.Visible = False
End If
End Sub"
The code works up to a point - the textbox 'txtWhyDelayed' is hidden after
the 'txtReadyOn' is updated (with a date later than that in 'txtRequiredBy')
but when the form is closed and re-opened the 'txtWhyDelayed' is visible
again.
Ideally I would like 'txtWhyDelayed' to remain invisible all of the time
unless the date in 'txtReadyOn' is later than that in 'txtRequired'.
How can I achieve this?
Sandy
Form - 'frm_Contact_Complete'
with - 'txtDateRequired'
Subform - 'subfrm_Job_Complete'
with - 'txtReadyOn' and 'txtWhyDelayed'
and the code :
"Private Sub txtReadyOn_AfterUpdate()
If txtReadyOn > Forms!frm_Contact_Complete.txtRequiredBy Then
Me.txtWhyDelayed.Visible = True
Me.lblWhyDelayed.Visible = True
Else
Me.txtWhyDelayed.Visible = False
Me.lblWhyDelayed.Visible = False
End If
End Sub"
The code works up to a point - the textbox 'txtWhyDelayed' is hidden after
the 'txtReadyOn' is updated (with a date later than that in 'txtRequiredBy')
but when the form is closed and re-opened the 'txtWhyDelayed' is visible
again.
Ideally I would like 'txtWhyDelayed' to remain invisible all of the time
unless the date in 'txtReadyOn' is later than that in 'txtRequired'.
How can I achieve this?
Sandy