I am creating a utility database to use to update and maintenance other databases. One of them has an update process that uses 19 queries and as many linked tables. It works, but is complicated (and undocumented), so I would rather just have a button that opens that database.
I would prefer opening a specific form, but that is optional.
Here is some code (MSDN) I found that gets as far as opening the database, but once you click "Open" nothing happens.
Any help would be great.
Thanks,
Bard
I would prefer opening a specific form, but that is optional.
Here is some code (MSDN) I found that gets as far as opening the database, but once you click "Open" nothing happens.
Code:
Dim appAccess As Access.Application Dim strDB as String ' Initialize string to database path. Const strConPathToSamples = "C:\Program " _ & "Files\Microsoft Office\Office11\Samples\" strDB = strConPathToSamples & "Northwind.mdb" ' Create new instance of Microsoft Access. Set appAccess = _ CreateObject("Access.Application") ' Open database in Microsoft Access window. appAccess.OpenCurrentDatabase strDB ' Open Orders form. appAccess.DoCmd.OpenForm "Orders"
Thanks,
Bard
Comment