When an user is entering data in a form there are some logical errors that may occur. These are not serious until the ‘Save’ button is clicked. I would like to advise the user by the way of a gentle alert that there is a problem.
For example if the cost is 10 and the charge is 9 then there is a problem that needs addressing.
So I have created a label that is normally not visible. The caption on the label is then set to explain the problem i.e.
Me.lblAlert.Caption = “Cost is higher than charge”
Me.lblAlert.Visible = True
… but I would like to clear the alert after a few seconds with:
Me.lblAlert.Visible = False
I am not sure how long to leave the alert visible but I can experiment.
Does anyone have some timer code that would achieve this please?