I need a query that sorts data into 14 day blocks and then displays the results in a stacked bar chart?
The data is continuously updated so I require the query to constantly sort the data without any changes to the original query.
How about sharing something about your chart Row Source and "14 day blocks"? Do the blocks correspond with full weeks or are they relative to the current date?
Sub DigitTable(MaxNumber)
Dim Mydb As Database
Dim Num As Long
Set Mydb = CurrentDb
Mydb.Execute "Create Table Digits (Digitid INTEGER CONSTRAINT Digitid PRIMARY KEY)"
For Num = 1 To MaxNumber
Mydb.Execute "Insert Into Digits (Digitid) Values (" & Num & ")"
Next
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.