Recurrence loop in VB6 - weekly portion

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Ok, so I am biting the bullet and creating my own recurrence patterns. I am
stuck on the loop for a weekly recurrence where multiple days are selected
(i.e. Sunday, Wed, Thur). I have a start date and an end date so I know how
many times to loop, but I can't figure out how to handle the days. So if
the days selected are Sunday and Thursday and the start date is 10/14/08 and
end date is 10/31/08 the end pattern should be Thursday 10/16/08, Sunday
10/19/08, Thursday 10/23/08, Sunday 10/26/08, and Thursday 10/30/08.

Any suggestions are appreciated.

WB


.



Relevant Pages

  • Re: Recurrence loop in VB6 - weekly portion
    ... stuck on the loop for a weekly recurrence where multiple days are selected ... many times to loop, but I can't figure out how to handle the days. ... Dim weeklyAs Boolean ...
    (microsoft.public.vb.general.discussion)
  • Re: Recurrence loop in VB6 - weekly portion
    ... stuck on the loop for a weekly recurrence where multiple days are selected ... many times to loop, but I can't figure out how to handle the days. ... Dim weeklyAs Boolean ...
    (microsoft.public.vb.general.discussion)
  • RE: Beginner VBA help with multiple tables
    ... I also need help with looping multiple tables. ... Dim rsEmployees As DAO.Recordset ... add a record to the Hours recordset for each employee. ... conditional statements to further control your code within the loop, ...
    (microsoft.public.access.modulesdaovba)
  • Re: variable scope in for loop
    ... IMHO, doing that doesn't hurt so much, but it does hurt to be forced to ... I think it's cleaner to have a loop counter defined in the loop ... some more complex object being used in multiple blocks of code ... > declaring it once and using it multiple times. ...
    (comp.lang.cpp)
  • Re: String concatenation performance
    ... > into one string for use over multiple lines of code. ... Running the sample many times via an internal loop. ... in a container and that container is using system resources along with the ...
    (comp.lang.javascript)