Hello
I would like to perform some simple SQL queries on an Access database from within Excel VBA code. But I haven't a clue on how to start!
For instance, when I try the following :
Sub QueryDataBase()
Dim dbsMyDB As Database
End Sub
I get an error on compilation which says "User defined type not defined." Is this because the "Database" object type is NOT available from within Excel VBA?
Any clues or poiners to sample code which would help me would be greatly appreciated.
By the way, I'm using Excel 97.
Regards
HedgePig
I would like to perform some simple SQL queries on an Access database from within Excel VBA code. But I haven't a clue on how to start!
For instance, when I try the following :
Sub QueryDataBase()
Dim dbsMyDB As Database
End Sub
I get an error on compilation which says "User defined type not defined." Is this because the "Database" object type is NOT available from within Excel VBA?
Any clues or poiners to sample code which would help me would be greatly appreciated.
By the way, I'm using Excel 97.
Regards
HedgePig