It’s been years since I’ve worked in Access code and it is making me certifiably insane.
I just don’t remember anything and all I want to do is open a recordset in code and nothing I’ve found online or any permutation of code I’ve tried works.
The short of it:
Dim rsSystem As Recordset
Dim sSQL As String
sSQL = "SELECT * FROM Table"
Set rsSystem = CurrentDB.OpenRecordset(sSQL)
What in the holy hell am I missing?
Thanks in advance.
Examples here, for all permutations of opening a “Recordset”:
http://www.vbexplorer.com/VBExplorer/vb_feature/june2000/Database_Beginner_ADO_DAO.asp
The easiest way is to use DAO on the current database. My VBA is a little rusty, but…
For ADO: