ChrisQuick
Programmer
I am trying to write an application that will connect to a MS Access database, create a recordset by running a SQL query, and then recursively read all the records returned to set some variables to be used elsewhere.<br>
<br>
I've gotten as far as:<br>
<br>
Dim cnnDbs As Database<br>
Dim strQuery As String<br>
Dim strFileName As String<br>
Dim strDesc As String<br>
cnnDbs = OpenDatabase(my.mdb"<br>
strQuery = ("Select filename, description from fileListTable where username = 'Bob'"<br>
<br>
But I don't know how to pass the query to the connection make the recordset. Any help?<br>
<br>
<br>
I've gotten as far as:<br>
<br>
Dim cnnDbs As Database<br>
Dim strQuery As String<br>
Dim strFileName As String<br>
Dim strDesc As String<br>
cnnDbs = OpenDatabase(my.mdb"<br>
strQuery = ("Select filename, description from fileListTable where username = 'Bob'"<br>
<br>
But I don't know how to pass the query to the connection make the recordset. Any help?<br>
<br>