M
Margaret Bartley
I've manually added an Access database to my References collection.
I've got a file called "books1.mdb". I selected it using the Browse button
on the Refernces dialog box.
I now have "books1" in my list of Refernces, and I've checked it.
The location is "C:\MyDocs\SML\Data"
So, now how do I reference it, so I can get to the collection of modules in
it?
I've tried various combinations like below:
Dim oAcc as Access.Application
Dim db As Database
Set oAcc = New Access.Application
set db=oAcc.database(books1)
but I get a "Type Mismatch" on the New Access.Application.Database, other
error.
I've tried
Dim oDB as books.application
but that doesn't work, either.
Basically, I don't know if I need to first create an Access application
object, and then use the books1 as a database, or if books1 is my
application object.
I've got a file called "books1.mdb". I selected it using the Browse button
on the Refernces dialog box.
I now have "books1" in my list of Refernces, and I've checked it.
The location is "C:\MyDocs\SML\Data"
So, now how do I reference it, so I can get to the collection of modules in
it?
I've tried various combinations like below:
Dim oAcc as Access.Application
Dim db As Database
Set oAcc = New Access.Application
set db=oAcc.database(books1)
but I get a "Type Mismatch" on the New Access.Application.Database, other
error.
I've tried
Dim oDB as books.application
but that doesn't work, either.
Basically, I don't know if I need to first create an Access application
object, and then use the books1 as a database, or if books1 is my
application object.