Defining a Database

D

Dave S

Hi,

I'm copying over some old code I wrote into a new access database. When I
do this, and compile, I get an error message on the line "Dim dbs As
Database", saying "user defined type not defined". I didn't have to define
it in my other database. Any thoughts?

Private Sub cmdImportWorkbookData_Click()
'Declare Variables
Dim dbs As Database
Dim rst As DAO.Recordset
Dim strWorkbookName As String
Dim strDirName As String

Thanks,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top