Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Interval Training
eddy geijselaers 
    
14 years ago
Thanks Rick,

This is the code for the Endurance wich works (WarmUp and Cooldown is the same)

Private Sub EnduranceTraining()

    If EnduranceSec = "" Then
        MsgBox ("Enter a Number between 0 and 60")
    End If
    
    If EnduranceSec > 0 Then
        EnduranceSec = EnduranceSec - 1
    End If

    If EnduranceMin > 0 Then
        If EnduranceSec = 0 Then
                EnduranceMin = EnduranceMin - 1
                EnduranceSec = 59
        End If
    End If

    If EnduranceHrs > 0 Then
        If EnduranceMin = 0 Then
            If EnduranceSec = 0 Then
                EnduranceHrs = EnduranceHrs - 1
                EnduranceMin = 59
                EnduranceSec = 59
            End If
        End If
    End If
    
    If EnduranceSec = 0 Then
        If EnduranceMin = 0 Then
            If EnduranceHrs = 0 Then
                CoolDown
            End If
        End If
    End If

End Sub

For the Interval and Recover training the code should Loop First Interval then Recover and go back to Interval starting the next Loop.

In the Endurance the code forwards to Cooldown. in the Interval I tryed to do the same from within a "for next"; Interval to Recover and from Recover back to Interval. Which doesn't work.

Next I tryed Interval and Recover within one Private Sub but the code now runs simmaltanious (Interval and Recover counts down both at the same time).

Now I am out of options, guess your experience is not.

Many thanks
eddy



Reply from Richard Rost:

Your code above looks fine. I'd need to see the rest of your database to tell you for sure how to handle the different intervals. Like I said before, I'd just make a subtable with the type and duration, as I spelled out before. Run through a recordset, loading each one, and then when that's done MoveNext to the next one.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 8/24/2026 9:26:00 AM. PLT: 0s