|
-
Aug 8th, 2005, 01:08 PM
#1
Thread Starter
Lively Member
-
Aug 8th, 2005, 01:29 PM
#2
Fanatic Member
Re: Microsoft Access Hide Main Window
VB Code:
Private Sub cmdUnlock_Click()
'SetAllowByPassKey True
DoCmd.SelectObject acTable, , True
End Sub
Private Sub cmdLock_Click()
'SetAllowByPassKey False
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
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!
-
Aug 8th, 2005, 04:06 PM
#3
Thread Starter
Lively Member
Re: Microsoft Access Hide Main Window
Yes the following code works great.
VB Code:
Private Sub cmdUnlock_Click()
'SetAllowByPassKey True
DoCmd.SelectObject acTable, , True
End Sub
Private Sub cmdLock_Click()
'SetAllowByPassKey False
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
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.
-
Aug 8th, 2005, 04:18 PM
#4
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
-
Aug 8th, 2005, 04:56 PM
#5
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|