R
RobUCSD via AccessMonster.com
With the code below the cmdVisitEdit is always invisible. this is in the on
current event. It shouldn't be always invisible if the tests work. If the out
of room time is over 30 minutes or if visit date is not today, then the
cmdVisitedit should be visible. Anybody have any ideas as to why it's not
working?
Thanks, Rob
If DateDiff("n", Me.OutOfRoom, Now) >= 30 Or Me.VisitDate <> Date Then
Me.cmdVisitEdit.Visible = False
Else
Me.cmdVisitEdit.Visible = True
current event. It shouldn't be always invisible if the tests work. If the out
of room time is over 30 minutes or if visit date is not today, then the
cmdVisitedit should be visible. Anybody have any ideas as to why it's not
working?
Thanks, Rob
If DateDiff("n", Me.OutOfRoom, Now) >= 30 Or Me.VisitDate <> Date Then
Me.cmdVisitEdit.Visible = False
Else
Me.cmdVisitEdit.Visible = True