Results 1 to 2 of 2
  1. #1
    Cheshire101 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Posts
    42

    Question Push information from one DB to another

    I want to push the information contained in two fields on my form into specific fields on another form in another database when the form is opened using a command button from the original form.

    BTW- I already have the database opening and the correct form open, I just need to figure out how to fill in the information.

    Can this be done?

    Something like....
    Databases![DatabaseName]!Forms![FormName]![FieldName] = Me.Field1

  2. #2
    Cheshire101 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Posts
    42

    Solution

    I figured it out:
    Code:
        Dim objAcc As Access.Application
        
        Set objAcc = New Access.Application
            objAcc.UserControl = True
            objAcc.OpenCurrentDatabase ("DatabaseName.mdb")
        
        objAcc.Forms![FormName]![FieldName] = Me.Field1
    Posting the solution in case someone else needs something similar

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

Similar Threads

  1. Weather Information
    By chadshowalter in forum Import/Export Data
    Replies: 0
    Last Post: 02-23-2011, 03:40 PM
  2. Where can I get more information on this pls?
    By Buakaw in forum Programming
    Replies: 6
    Last Post: 02-12-2011, 04:39 AM
  3. Information transfer
    By tomclavil in forum Forms
    Replies: 5
    Last Post: 02-07-2011, 05:41 AM
  4. Crosstabbing Information
    By crashz in forum Queries
    Replies: 2
    Last Post: 06-25-2009, 08:45 AM
  5. Alphabetize Information
    By caljohn527 in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 10:50 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