Results 1 to 6 of 6
  1. #1
    Bob McClellan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    17

    using 2 apps

    How can you jump to one db app from another...?

    I know I can do this to open another app...

    Dim accapp As Access.Application
    Set accapp = New Access.Application


    accapp.OpenCurrentDatabase ("c:\trc\trc.2k.adp")
    accapp.Visible = True

    But this opens a new instance each time.
    I want to double click a control in one app and jump to the other app

    Any help is much appreciated.
    tia,
    ..bob

  2. #2
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    228
    Omit the New keyword when you call it subsequently.

  3. #3
    Bob McClellan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    17
    thanks for you reply goodguy.
    ..that does not work. I tried it before writing my post.

    I did get FollowHyperLink to work. It works great.... however, after jumping to the
    other app, I'd like to filter the form to a specific account number.

    Here is the scenario.... 2 of the many apps in place here are Dispatch and Collections.
    The people working in Credit always have both open and are constantly toggling back and forth.
    When They see new orders needing credit approval they bounce to the collections program to see the aging, notes, credit info and other related data.
    I'd like for them to simply double click the account# in the dispatch program and go to the collections program and filter on that account.

    Does anyone know the syntax to use to control forms in one app from another app.
    I can't use Forms![frmMain]!frmCustomersToView.form.filter = "Addr = ' & me.addr & "'"
    because it's looking for frmMain which does not exist in the current app.

    Hopefully the explanation is clear enough to convey what I am looking to do.
    thanks in advance,
    ..bob

  4. #4
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    228
    Why don't you set the accapp variable as a global and then keep reusing it without having to initialize it every time?

  5. #5
    Bob McClellan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    17
    I've never worked with that. If you wouldn't mind, could you supply some example code?
    I'd sure appreciate it.

    I am very familiar with doing whatever I want within an app with regard to referencing form controls and subforms...
    I just have never referenced something in another app.
    I have been scouring the net via google but can't seem to find anything with examples of this.

    I simply want to
    -double click and leave the dispatch app.
    -make the collection app the active app ( I can do this )

    What I need help with is....
    Reference the collection app from the dispatch app so I can ...
    -set the filter property on the subform [CollectionsApp].Forms!frmMain!CustomersToView].form.Filter

    thanks in advance,
    ..bob

  6. #6
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    228
    Why don't you show us the code you have so far and I will see how it can be tweaked to stay open?

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

Similar Threads

  1. Replies: 2
    Last Post: 07-01-2010, 07:09 PM
  2. Replies: 2
    Last Post: 03-02-2010, 12:02 PM
  3. Front ends apps in split applications
    By Coolpapabell in forum Access
    Replies: 4
    Last Post: 10-14-2009, 01:51 AM
  4. Access 2007 runtime apps
    By Plumber in forum Access
    Replies: 0
    Last Post: 01-27-2009, 08:07 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