How do Access programs to open a form in another database?

zhaozj2021-02-16  47

How to program the form in other databases?

Brief description: How to program the form in other databases?

problem:

How to program the form in other databases, return it after use? I created a database, only one form, I want to add a few buttons on the form, corresponding to a Click event on each button, the action of the event is to play the corresponding Access database, and execute the MENU form in the database, close After the database is returned to the FORM with the button.

Reply:

Function Openohtermdb () Dim objapp assenuNcurrentDatabase currentproject.path & "/sample.mdb" objapp.docmd.openform "newForm" end Function

Http://access911.net webmaster collection

转载请注明原文地址:https://www.9cbs.com/read-24494.html

New Post(0)