N
Nick Mirro
I have a small subform that shows in continous form mode (scrolling). There
are two fields overlapping and I'd like only one to show (be visible)
depending on the date. I tried this:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If DateOfVisit < 8 / 1 / 3 Then
Me![ProviderNoteNEW].Visible = False
Me![ProviderNoteOld].Visible = True
End If
If DateOfVisit > 7 / 31 / 3 Then
Me![ProviderNoteNEW].Visible = True
Me![ProviderNoteOld].Visible = False
End If
End Sub
ProviderNoteNEW keeps showing on top of the other control despite date.
I've tried it several different ways. I later added this hoping to reset
the fields to visible but it doesn't seem to work:
Private Sub Form_AfterUpdate()
Me![ProviderNoteNEW].Visible = True
Me![ProviderNoteOld].Visible = True
End Sub
are two fields overlapping and I'd like only one to show (be visible)
depending on the date. I tried this:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If DateOfVisit < 8 / 1 / 3 Then
Me![ProviderNoteNEW].Visible = False
Me![ProviderNoteOld].Visible = True
End If
If DateOfVisit > 7 / 31 / 3 Then
Me![ProviderNoteNEW].Visible = True
Me![ProviderNoteOld].Visible = False
End If
End Sub
ProviderNoteNEW keeps showing on top of the other control despite date.
I've tried it several different ways. I later added this hoping to reset
the fields to visible but it doesn't seem to work:
Private Sub Form_AfterUpdate()
Me![ProviderNoteNEW].Visible = True
Me![ProviderNoteOld].Visible = True
End Sub