Results 1 to 2 of 2
  1. #1
    nd0911 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2017
    Posts
    31

    Load form file in another access file

    Hello,



    I have a form with VBA code that I can use in alot of my access projects, and I want to export this form with his designs and code and open it in another access file.

    I tried to right click on the name of the form in the VBE, save it on some folder and then import it from another VBE access file, but I get a message that the name of the form is "illegal" (my form name is "Form_Frm_DbConn")(by the way, the opening name "Form", access added to my name automatically "Frm_DbConn"), after this message, a class file is entered to the VBE with the code that was in the form but not the form himself.

    Whan I'm doing the same procdure on excel form or access module it works perfect.

    Am I misssing somthing ?

    Thank you !

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    Open the two db files, right click on the form in Navigation Pane (in Access, not the VBE) > Copy > go to other db > Paste.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 34
    Last Post: 08-09-2017, 09:57 AM
  2. Replies: 1
    Last Post: 03-03-2017, 09:25 PM
  3. Export Access table data to flat file (txt file)
    By edmscan in forum Import/Export Data
    Replies: 3
    Last Post: 06-17-2015, 12:03 PM
  4. Replies: 2
    Last Post: 05-01-2014, 01:31 PM
  5. How to get a load file dialog?
    By degras in forum Programming
    Replies: 4
    Last Post: 04-21-2011, 07:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums