I'm trying to setup a simple recordset to capture information in a table to place it in a report. Here's the code:
Expand|Select|Wrap|Line Numbers
- Private Sub Report_Load()
- Dim rsOne As Recordset
- Dim SQL As String
- SQL = "SELECT * FROM tblTest ;"
- Set rsOne = CurrentDb.OpenRecordset(SQL)
- Debug.Print (rsOne.RecordCount)
- End Sub
I want to use unbound text boxes on the report and I want to populate the boxes via VBA, the main reason for VBA is I am most comfortable with VBA.
I haven't really tried this before so I'm happy to believe that I'm making some fundamental error in my logic.
Using Access 2007, on xp.