LittleSmudge
Programmer
I have some code in DAO that creates a new database in the current db'd folder that is straight out of the Access97 help manual
However, I'm now working on a A2000 implementation using ADO and I do NOT want to have to reference the DAO libraries on all the users machines that this will run on.
ADO does not recognise Workspace or Database as types.
What is the ADO equivalent of this code ?
G LS
Code:
Sub CreateDatabaseX()
Dim wrkDefault As Workspace
Dim dbsNew As DATABASE
Dim prpLoop As Property
' Get default Workspace.
Set wrkDefault = DBEngine.Workspaces(0)
' Make sure there isn't already a file with the name of
' the new database.
If Dir("Activity.mdb") <> "" Then Kill "Activity.mdb"
' Create a new database with the specified collating order.
Set dbsNew = wrkDefault.CreateDatabase("Activity.mdb", _
dbLangGeneral)
dbsNew.Close
End Sub
However, I'm now working on a A2000 implementation using ADO and I do NOT want to have to reference the DAO libraries on all the users machines that this will run on.
ADO does not recognise Workspace or Database as types.
What is the ADO equivalent of this code ?
G LS