Results 1 to 2 of 2
  1. #1
    gerffo is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    1

    Setup External Subforms by code (External = Separatet database).

    Hi Everyone,
    I am trying to setup programmatically subforms which are in a separate access database (Separate file access). I am doing this from a form which have the functionality of switching subforms. So the parent from is in the database "A" and the subforms are in the database "B", RecordSource is not needed. Normally, when all forms are in the same database, I use the following:
    Code:
     Me.Subform.SourceObjet = strSubform
    but this case is different. Any Ideas?




    Thank you


    Gerardo

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    As far as I know, forms must be in same file in order to associate. You could maybe programmatically import form, set the subform container SourceObject property. Then programmatically delete the form.
    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. Delete in external database
    By theosgood in forum Programming
    Replies: 3
    Last Post: 10-06-2012, 01:27 PM
  2. Replies: 9
    Last Post: 10-05-2012, 06:15 AM
  3. External
    By krkow in forum Forms
    Replies: 5
    Last Post: 01-14-2012, 11:45 AM
  4. Import individual records from external database
    By jimh in forum Import/Export Data
    Replies: 3
    Last Post: 09-13-2011, 04:19 PM
  5. Linked Database with 2 external Sources?
    By andersonEE in forum Import/Export Data
    Replies: 1
    Last Post: 07-16-2011, 05:52 PM

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