I am exporting data from access to excel. I have a record set that is larger than the space (rows), I'd like to place the first 22 records and then place the remaining records a few columns over. I'm not sure how to limit the first set of data ? array
This is the query that provides the data.
Would I limit the record set at the query level or the placement in Excel?
D
VBA Code:
i = 16
With xlWks
Do While Not rsHonorary.EOF
.Range("AB" & i).Value = Nz(rsHonorary!FullName, "")
i = i + 1
rsHonorary.MoveNext
Loop
End With
This is the query that provides the data.
SQL:
SQLHonorary = "SELECT TblMembers.LastName, TblMembers.FirstName, TblMembers.Status, [FirstName] & "" "" & [LastName] AS FullName " & _
"FROM TblMembers " & _
"WHERE (((TblMembers.Status) = 'Honorary')) " & _
"ORDER BY TblMembers.LastName, TblMembers.FirstName;"
Would I limit the record set at the query level or the placement in Excel?
D