Share via

Hide main database window

Anonymous
2013-09-05T21:53:41+00:00

HI All

I want to open a access file ( for eg.  : A.accdb)  from another access file ( for eg.  : B.accdb), I use some method like : opencurrentdatabase methode and No problem

How can I open the databse ( B.accdb ) with (A.accdb) without visible it's ( B.accdb ) main database window ( I need to Hide this )

regard

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2013-09-06T15:59:19+00:00

    Right... you want to...

    1. Open A
    2. Open a Form from B via A BUT hide B's window

    I am saying I don't believe that will work... at least, as far as I know.  I know you can hide the current installation, see...

    http://www.access-programmers.co.uk/forums/showthread.php?t=217400

    Perhaps someone else will pass by with a solution.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-09-06T15:35:13+00:00

    Hi

    I don't want to hide a form , I want to hide the main access window

    for clearly , like use of Hideaccess function to hide the access window for a file itself but my question is  Hide the access window file for a file when I open it by another one

    for better undrestand please put below cod to a module and call " Hideaccess "

    dont forget put a button to Quite and use Docmd.restore on onload the form

    code : ( windows mus be 32 bit):

    Option Compare Database

    Public Declare Function ShowWindow Lib "user32.dll" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

    Public Sub HideAccess()

    Call ShowWindow(Access.hWndAccessApp, 0)

    End Sub

    I am waiting to give a correct answer for my main Question

    regard

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-09-06T14:26:47+00:00

    Did not realize you also wanted to open a Form.  I thought you just wanted to retreive some data from that file.  In light of that, the answer is no, you can't open B.ACCDB to use a Form and keep it hidden.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2013-09-06T07:52:31+00:00

    Hi

    How can I link to it when I want to open a form of it (B.accdb)

    regard

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2013-09-06T02:18:04+00:00

    Why not just link to it?  Then no need to open at all...

    Was this answer helpful?

    0 comments No comments