How does access programmatically open a form in another database?

Source: Internet
Author: User
Tags access database
access| Programming | data | database
How do I programmatically open a form in another database?




Description: How do I programmatically open a form in another database?




Problem:


How do I programmatically open a form in another database and return it after use?
I created a new database, there is only a form, I want to add a few buttons on the form, each button corresponding to a click event, the action of the event is to play the corresponding Access database, and execute the Database menu form, close the database and then back to the button form.





Reply:

Function Openohtermdb ()
Dim objapp as New access.application
Objapp.opencurrentdatabase Currentproject.path & "Ample.mdb"
ObjApp.DoCmd.OpenForm "NewForm"
End Function
HTTP://ACCESS911.NET Webmaster Collection


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.