hi
I need help, I have a label that displays the date and time "dd-mmm-yyhh:mm ampm"
once the user form shows I have 2 images that I want it to show based on theresult of what the time is currently.
for example if the label says 07-Jul-18 06:00 am and the label is within 20minutes of the current time then image1 will show but anything outside of thistime image2 will show.
So far I have
If label1.Caption > Format(Now – 0.01, "dd-mmm-yyhh:mm ampm") Then
Image2.Visible= False
Image1.Visible= True
Else
Image2.Visible= True
Image1.Visible= False
End If
But that doesn’t seem to be working and I think I am justgetting confused with images/greater than/less than and the whole time factoris just not working for me.
Please HELP me.
I need help, I have a label that displays the date and time "dd-mmm-yyhh:mm ampm"
once the user form shows I have 2 images that I want it to show based on theresult of what the time is currently.
for example if the label says 07-Jul-18 06:00 am and the label is within 20minutes of the current time then image1 will show but anything outside of thistime image2 will show.
So far I have
If label1.Caption > Format(Now – 0.01, "dd-mmm-yyhh:mm ampm") Then
Image2.Visible= False
Image1.Visible= True
Else
Image2.Visible= True
Image1.Visible= False
End If
But that doesn’t seem to be working and I think I am justgetting confused with images/greater than/less than and the whole time factoris just not working for me.
Please HELP me.