Results 1 to 5 of 5

Thread: [RESOLVED] Microsoft Access Hide Main Window

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Location
    AZ
    Posts
    67

    Resolved [RESOLVED] Microsoft Access Hide Main Window

    Using 2000 Microsoft Acces:

    not sure if this the best place for Access questions but since Access uses VBA I figure it's close enough


    [Hide Main Form:]

    Any other info on on to permantly or when the the Program loads to hide the Main Tables screen
    I hid it using the Window option to hide the selected Form but when the program loads again it reopens.


    [Unhide regular Form:]

    Also I had accidently permantly hid a form I hightlighted the Form name under the toolbar View went to properties and under attribute I checked hidden thinking it was the main form, which it wasn't...

    in the Design Main Form where it lists all the forms, Queries, etc this file is not shown but I am able to run it when my program calls it.



    Thank you in advance,
    Any help would be appreciated

  2. #2
    Fanatic Member demotivater's Avatar
    Join Date
    Jun 2002
    Location
    is everything
    Posts
    627

    Re: Microsoft Access Hide Main Window

    VB Code:
    1. Private Sub cmdUnlock_Click()
    2.     'SetAllowByPassKey True
    3.     DoCmd.SelectObject acTable, , True
    4. End Sub
    5.  
    6. Private Sub cmdLock_Click()
    7.     'SetAllowByPassKey False
    8.     DoCmd.SelectObject acTable, , True
    9.     DoCmd.RunCommand acCmdWindowHide
    10. End Sub

    That just hides/unhides the main db window, is that what you're after?
    Here's to us!
    Who's like us?
    Darned few, and they're all dead!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Location
    AZ
    Posts
    67

    Unhappy Re: Microsoft Access Hide Main Window

    Yes the following code works great.

    VB Code:
    1. Private Sub cmdUnlock_Click()
    2.     'SetAllowByPassKey True
    3.     DoCmd.SelectObject acTable, , True
    4. End Sub
    5.  
    6. Private Sub cmdLock_Click()
    7.     'SetAllowByPassKey False
    8.     DoCmd.SelectObject acTable, , True
    9.     DoCmd.RunCommand acCmdWindowHide
    10. End Sub


    Any idea about the second question

    [Unhide regular Form:]

    Also I had accidently hid a form I hightlighted the Form name under View > properties > attribute I checked hidden thinking it was the main form, which it wasn't...

    in the Design Main Form where it lists all the forms, Queries, etc this file is not shown but I am able to run it when my program calls it.



    I could still get to the hidden Form and clicking the Design button but I wonder if there is any way to get the form to display back on the Main Form.




    In the Main Window the form name was highlighted
    View > Properties then

    checked the Hidden checkbox under Attributes


    just something that I accidently did and am wondering if you know of anyway to bring the form back to unhidden. The form still opens when the programs run but in the main Window it is hidden


    Thanks for your helo
    Last edited by Zoila; Aug 8th, 2005 at 04:10 PM.

  4. #4
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Microsoft Access Hide Main Window

    In The Tools Options Menu of a database there is an tab called "View" on here you can choose whether or not to display hidden items.
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Location
    AZ
    Posts
    67

    Resolved Re: Microsoft Access Hide Main Window

    Thanks for your help.. I made sure to rate you guys Thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width