You should only create an array if you are going to use that array in code subsequent to your pseudocode, in other words that data will be lost if you close the database or, depending on your code, run another process.
Other than that what you're asking is pretty easy it's called a multi dimensional array
https://msdn.microsoft.com/en-us/lib...(v=vs.90).aspx
You can add 'rows' to your array then cycle through the array retrieving elements of the row as you go along.
also.. you wouldn't add 7 days to your start and end date you'd have something more like
Code:
dim dStartDate, dEndDate, dCurrEndDate as date
dStartDate = #1/1/2016#
dEndDate = #12/31/2016#
do while dstartdate < denddate
dcurrenddate = dateadd("d", 6, dstartdate)
debug.print dstartdate & " - " & dcurrenddate
dstartdate = dateadd("d", 1, dcurrenddate)
loop
just to make sure you don't accidentally overlap date ranges.