Advertisement

06.19.2008 at 07:46AM PDT, ID: 23499082
[x]
Attachment Details

Need help with timer function

Asked by c9k9h in Access Coding/Macros, Microsoft Access Database, Microsoft Development

Tags: , , ,

Hello,

I have a form that uses a timer function to track the duration of a phone call.

in the OnLoad event of the form I have:

 Private Sub Form_Load()
Select Case MsgBox("Start Call Timer?", vbYesNo)
  Case vbYes
    If Me.TimerInterval = 0 Then
      StartTickCount = GetTickCount()
      Me.TimerInterval = 15
      Else
     
      TotalElapsedMilliSec = TotalElapsedMilliSec + _
         (GetTickCount() - StartTickCount)
      Me.TimerInterval = 0
  End If
 
  Case vbNo
   
  Case Else
    End
End Select
End Sub

This starts the timer when the form is loaded, however, If the user opens the form again, it resets the count. The textbox that displays the time is bound to a table in the back-end and is saving appropriately. Is there a way I can make the timer pick up where it left off?

Thanks!Start Free Trial
 
Loading Advertisement...
 
[+][-]06.19.2008 at 07:59AM PDT, ID: 21822791

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 08:15AM PDT, ID: 21822986

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.19.2008 at 09:00AM PDT, ID: 21823543

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, Microsoft Development
Tags: Microsoft, Access, 2003, Mi
Sign Up Now!
Solution Provided By: RgGray3
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.19.2008 at 11:41AM PDT, ID: 21825087

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628