I use the sql statement as the recordsource for the report but the report does not show any data. This is the code that I have producing the report.
DoCmd.Echo False
DoCmd.OpenReport "QryResults", acViewDesign
With Reports("QryResults")
.Visible = False
.RecordSource = lsSQL
End With
DoCmd.OpenReport "QryResults", acViewPreview
DoCmd.Echo True
Where lsSQL is the SQL statement that the user enters. When I look at the properties of the report, the record source does show my sql statement. I dont understand why nothing is showing up on the report. I do a debug.print of my query and it produces the query results in the immediate window. I have to be making a stupid mistake somewhere. Thanks again