Private Sub Report_Open()
Dim Query As DAO.QueryDef
Debug.Print oReportSQL
If oReportSQL <> "" Then
Set Query = CurrentDb.CreateQueryDef("", oReportSQL)
Me!ListSql.ColumnCount = Query.Fields.Count
Me!ListSql.RowSource = oReportSQL
Query.Close
End If
End Sub
ASKER
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
to adjust the columns nicely