0
我尝试创建类似于分布式部署数据库的东西。从我的主数据库创建一个小型数据库,然后附加到邮件并发送给其他人。 为什么我必须这样做是漫长的故事,但我必须这样做。MS ACCESS通过数据库属性创建新的数据库?
我可以创建数据库转移表查询,但我不知道如何发送属性,如下所示。如果有人有另一种做法,那也很好。 必须分布在10个不同的地方。但我需要在锁定模式下进入并自动弹出窗体。
Public Function fnc_CreateAccessChicago()
Dim acApp As Access.Application
Set acApp = New Access.Application
acApp.Application.NewCurrentDatabase ("C:\TestTest\ChicagpDatabase")
------ acApp.Properties("StartupForm") = "frmAssetChicago" ----
acApp.Quit
End Function
Public Function fnc_Transfers()
DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\TestTest\ChicagoDatabase.accdb", acTable, "tblAllAsset", "tblAllAsset"
DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\TestTest\ChicagoDatabase.accdb", acQuery, "QryAssetChicago", "QryAssetChicago"
DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\TestTest\ChicagoDatabase.accdb", acForm, "frmAssetChicago", "frmAssetChicagoF"
End Function