Share via

Timer Intervals

Anonymous
2013-03-29T00:31:52+00:00

I have timer intervals set on a form in a runtime application of Access XP. I would like each user to be able to set their own preference for how frequently this OnTimer event occurs.  I thought it would be clever to create a form where they could select the frequency. So I made a combo box [cboTimerInterval]:

5 minutes (bound column 3000000)

10 minutes (bound column 6000000)

15 minutes (bound column 9000000)

Then I tried to set the timer interval property for the OnTimer event of the related field to

=[forms]!UserPreferences]![cboTimerInterval]       

...Tried it without the equal sign, too.

Boo hoo! Access no likey! The value you've entered isn't valid for this field.

Any thoughts?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2013-03-29T14:01:58+00:00

    In addition to what  John posted, you have an extra 0 in your intervals.  5 minutes is 300 seconds or 300,000 miliseconds.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-03-29T02:20:51+00:00

    thanks. i'll give it a try and vote "found this helpful" if it works!

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-03-29T01:02:38+00:00

    I think you'll need to set the timerinterval property in the AfterUpdate event of the combo box:

    Private Sub cboTimerInterval_AfterUpdate()

    Me.TimerInterval = Me.cboTimerInterval

    End Sub

    It might be necessary to use CLng(Me.cboTimerInterval).

    Was this answer helpful?

    0 comments No comments