I am using access 2003, I am querying the table scarlet using a statement
sql1 = "select rpt from scarlet where rpt <> '~' group by rpt"
basically, rpt will have values of ~, A, B, C, D. A can be assigned to 10 records, B to 5 records, etc...
sql1 should retrieve all the A,B,C,D and group them together so that the result of the query would give me A B C D.
What I want to do is take those values and insert them into an array for later use. I am having a hard time finding a solution...
sql1 = "select rpt from scarlet where rpt <> '~' group by rpt"
basically, rpt will have values of ~, A, B, C, D. A can be assigned to 10 records, B to 5 records, etc...
sql1 should retrieve all the A,B,C,D and group them together so that the result of the query would give me A B C D.
What I want to do is take those values and insert them into an array for later use. I am having a hard time finding a solution...
Code:
Dim Rept As DAO.Recordset Dim Rcount As DAO.Recordset Dim Report As Variant Dim sql1 As String Dim db As Database sql1 = "select rpt from scarlet where rpt <> '~' group by rpt" Set db = CurrentDb Set Rept = db.OpenRecordset(sql1)
Comment