When I run the code below I get the error message:
Run time error 13, Type Mismatch
After I select the 'debug' option the following line is highlited: Set dbs = CurrentDb
I am using Access 2002.
Help would be appreciated.
Dim dbs As DAO.Database
Dim MyRecSet As DAO.Recordset
Dim SQLString As String
Set dbs = CurrentDb
SQLString = ("SELECT * FROM tblPartNumber")
Set MyRecSet = dbs.OpenRecordset(SQLString)
Run time error 13, Type Mismatch
After I select the 'debug' option the following line is highlited: Set dbs = CurrentDb
I am using Access 2002.
Help would be appreciated.
Dim dbs As DAO.Database
Dim MyRecSet As DAO.Recordset
Dim SQLString As String
Set dbs = CurrentDb
SQLString = ("SELECT * FROM tblPartNumber")
Set MyRecSet = dbs.OpenRecordset(SQLString)