A
August
I'm using the AfterUpdate function to enable/disable a
field on a continuous form. The code looks like this:
Private Sub LetterSent_AfterUpdate()
If Me.LetterSent.Value = 0 Then
Me.LetterSentDate.Enabled = False
Me.LetterSentDate.Value = Null
Else
Me.LetterSentDate.Enabled = True
Me.LetterSentDate.Value = Date
End If
End Sub
Here is the problem: When the box is checked it correctly
inputs the date in the record that is checked. However,
it enables or disables every LetterSentDate field on the
form, not just the current record.
Help!
Thanks in advance.
field on a continuous form. The code looks like this:
Private Sub LetterSent_AfterUpdate()
If Me.LetterSent.Value = 0 Then
Me.LetterSentDate.Enabled = False
Me.LetterSentDate.Value = Null
Else
Me.LetterSentDate.Enabled = True
Me.LetterSentDate.Value = Date
End If
End Sub
Here is the problem: When the box is checked it correctly
inputs the date in the record that is checked. However,
it enables or disables every LetterSentDate field on the
form, not just the current record.
Help!
Thanks in advance.