EXAMPLE CreatingaDatabaseProgrammatically
EXAMPLE CreatingaDatabaseProgrammatically
EXAMPLE CreatingaDatabaseProgrammatically
Please note: The only use I can imagine for this is if you’ve tested to see if the database
exists and it doesn’t – which in itself, suggests something is wrong. I would usually
expect the database to be designed and created prior to use of the program, since you
don’t want multiple copies of the database and this code won’t work once the database
exists.
mstrCreateTable = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & DatabaseFullPath
adoxCat.Create(mstrCreateTable)
adoxTable.Indexes.Append(adoxIndex)
blnSuccess = True