I have a button on a form - when the user carries out a certain
task they click the button, this logs the time and date and
task type etc.
The following code is attached to the onclick event:
I have a feeling some of the users may think it's fun
to click the button a few times instead of once !!
Is it possible to add to the above code a routine that
will check the time of the last click event and ignore
the event if it's less than say 30seconds since the last
event?
any help would be appreciated
jon
task they click the button, this logs the time and date and
task type etc.
The following code is attached to the onclick event:
Code:
Me.fldtasktype.Value = "Task description"
Me.fldtaskCode.Value = "xxx"
Me.fldUsername.Value = Environ("UserName")
Me.fldtaskDate.Value = Now()
DoCmd.GoToRecord , , acNewRec
to click the button a few times instead of once !!
Is it possible to add to the above code a routine that
will check the time of the last click event and ignore
the event if it's less than say 30seconds since the last
event?
any help would be appreciated
jon