I am trying to create a new recordset from the current database.
When I try to compile after using...
Dim dbsNew As Database
Dim rstItem As Recordset
Set dbsNew = CurrentDb
Set rstItem = dbsNew.OpenRecordset( _
"SELECT * FROM Items"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
The compiler throws up an error saying 'user defined type, not defined'
I cannot get it to recognise Dim dbsNew As Database.
Any help appreciated.
When I try to compile after using...
Dim dbsNew As Database
Dim rstItem As Recordset
Set dbsNew = CurrentDb
Set rstItem = dbsNew.OpenRecordset( _
"SELECT * FROM Items"
The compiler throws up an error saying 'user defined type, not defined'
I cannot get it to recognise Dim dbsNew As Database.
Any help appreciated.