473,513 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide the database window

Hi People,

How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables. I have a
fully interatctive menu system from which you can show the 'database
window', the same button that you have to press to show the database
window opens a small modal form which has one button which will return
you to the menu system, but I also want it to close the database
window!

Hope that I have made myself clear.

TIA

Aug 9 '06 #1
11 7292
"Nick 'The database Guy'" <ni***********@eads.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Hi People,

How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables. I have a
fully interatctive menu system from which you can show the 'database
window', the same button that you have to press to show the database
window opens a small modal form which has one button which will return
you to the menu system, but I also want it to close the database
window!

Hope that I have made myself clear.

TIA
Have you set the startup options?

Keith.
www.keithwilby.com
Aug 9 '06 #2
Jan
Are you talking about showing and hiding it in code? I have this old
quote that works for me:

---Posted by Dev Ashish---

General: Show/Hide database window from code

You can hide the database container window by selecting the "Display
Database Window" option under Tools Menu/Startup. However, if you need
to show or hide the window on demand afterwards, you can use one of
these ways.
To show the database window, run
Docmd.SelectObject acTable, , True

To Hide the database window, run
Docmd.SelectObject acTable, , True
Docmd.RunCommand acCmdWindowHide

HTH

Jan
Nick 'The database Guy' wrote:
Hi People,

How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables. I have a
fully interatctive menu system from which you can show the 'database
window', the same button that you have to press to show the database
window opens a small modal form which has one button which will return
you to the menu system, but I also want it to close the database
window!

Hope that I have made myself clear.

TIA
Aug 9 '06 #3
Off course I have Keith, Jan has given me the information that I wanted
to know.

Keith Wilby wrote:
"Nick 'The database Guy'" <ni***********@eads.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Hi People,

How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables. I have a
fully interatctive menu system from which you can show the 'database
window', the same button that you have to press to show the database
window opens a small modal form which has one button which will return
you to the menu system, but I also want it to close the database
window!

Hope that I have made myself clear.

TIA

Have you set the startup options?

Keith.
www.keithwilby.com
Aug 9 '06 #4
Thanks Jan, thats exactly what I needed to know.

Nick

Jan wrote:
Are you talking about showing and hiding it in code? I have this old
quote that works for me:

---Posted by Dev Ashish---

General: Show/Hide database window from code

You can hide the database container window by selecting the "Display
Database Window" option under Tools Menu/Startup. However, if you need
to show or hide the window on demand afterwards, you can use one of
these ways.
To show the database window, run
Docmd.SelectObject acTable, , True

To Hide the database window, run
Docmd.SelectObject acTable, , True
Docmd.RunCommand acCmdWindowHide

HTH

Jan
Nick 'The database Guy' wrote:
Hi People,

How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables. I have a
fully interatctive menu system from which you can show the 'database
window', the same button that you have to press to show the database
window opens a small modal form which has one button which will return
you to the menu system, but I also want it to close the database
window!

Hope that I have made myself clear.

TIA
Aug 9 '06 #5
"Nick 'The database Guy'" <ni***********@eads.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Off course I have
I read your OP very quickly and misunderstood. Not everyone is familiar
with your level of expertise - "How do you go about hiding the database
window *using code*." might have better alerted the casual reader to what
you actually wanted. Even Jan had to ask!

Keith.
Aug 9 '06 #6
Nick 'The database Guy' wrote:
How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables.
If this is an app for others to use, I would very strongly suggest
improving your interface so that it is not necessary to have to go to a
table "to manually add data".

Never let your app users have access to your tables. Unless it is
someone linking to the tables from another mdb for information purposes
only.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Aug 9 '06 #7
"Tim Marshall" <TI****@PurplePandaChasers.Moertheriumwrote in message
news:eb**********@coranto.ucs.mun.ca...
Nick 'The database Guy' wrote:
>How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables.

If this is an app for others to use, I would very strongly suggest
improving your interface so that it is not necessary to have to go to a
table "to manually add data".

Never let your app users have access to your tables. Unless it is someone
linking to the tables from another mdb for information purposes only.
I must admit, I wasn't sure what the OP meant by "The reason for doing this
is sometimes have to manually add data to tables." I didn't know if there
was an "I" or a "users" missing so I assumed it was for his own use. Still
would be an "unusual" design though :-)

Keith.
Aug 9 '06 #8
I know Tim I agree with you that you should usually never let users
have access to your tables, however I am in a bit of an unusual
situation, for the first thing the database will only used by 1 or at
the most 2 people, also they are very high level users, furthermore
they have demeanded this access and as they are the people who are
paying me it seems a bit 'unwise' to refuse them.

Nick

Tim Marshall wrote:
Nick 'The database Guy' wrote:
How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables.

If this is an app for others to use, I would very strongly suggest
improving your interface so that it is not necessary to have to go to a
table "to manually add data".

Never let your app users have access to your tables. Unless it is
someone linking to the tables from another mdb for information purposes
only.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Aug 9 '06 #9
What I could do with now is a piece of code that disables the X in the
database window that we hide.

Jan wrote:
Are you talking about showing and hiding it in code? I have this old
quote that works for me:

---Posted by Dev Ashish---

General: Show/Hide database window from code

You can hide the database container window by selecting the "Display
Database Window" option under Tools Menu/Startup. However, if you need
to show or hide the window on demand afterwards, you can use one of
these ways.
To show the database window, run
Docmd.SelectObject acTable, , True

To Hide the database window, run
Docmd.SelectObject acTable, , True
Docmd.RunCommand acCmdWindowHide

HTH

Jan
Nick 'The database Guy' wrote:
Hi People,

How do you go about hiding the database window. The reason for doing
this is that sometimes have to manually add data to tables. I have a
fully interatctive menu system from which you can show the 'database
window', the same button that you have to press to show the database
window opens a small modal form which has one button which will return
you to the menu system, but I also want it to close the database
window!

Hope that I have made myself clear.

TIA
Aug 9 '06 #10
"Nick 'The database Guy'" <ni***********@eads.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
What I could do with now is a piece of code that disables the X in the
database window that we hide.
AFAIK you can't do that. What you can do is to have code in your main
form's unload and close events (air code, untested):

(unload)
If MsgBox("Exit Application?", vbYesNo + vbQuestion, "Exit
Application") = vbYes Then
Cancel = False
Else
Cancel = True
End If

(close)
DoCmd.Quit

That way, regardless of how you close the db you'll always run the code
provided the form is loaded. This is particularly useful if you're
maintaining a user log.

HTH - Keith.
www.keithwilby.com
Aug 9 '06 #11
Thanks Keith,

I am maintaining a users log.

The unload event works a treat.

Thanks,

Nick
Keith Wilby wrote:
"Nick 'The database Guy'" <ni***********@eads.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
What I could do with now is a piece of code that disables the X in the
database window that we hide.

AFAIK you can't do that. What you can do is to have code in your main
form's unload and close events (air code, untested):

(unload)
If MsgBox("Exit Application?", vbYesNo + vbQuestion, "Exit
Application") = vbYes Then
Cancel = False
Else
Cancel = True
End If

(close)
DoCmd.Quit

That way, regardless of how you close the db you'll always run the code
provided the form is loaded. This is particularly useful if you're
maintaining a user log.

HTH - Keith.
www.keithwilby.com
Aug 9 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
18349
by: Peter K | last post by:
How do I Hide/Unhide the Main Database Window in VB?
8
4001
by: MLH | last post by:
My autoexec macro in an Access 2.0 database has 2 lines. The first runs DoMenuItem - Database - Window - Hide. The second lines is Runcode - Initialize(). Initialize is a procedure in a global...
1
1578
by: mr.mcgrew | last post by:
Out of nowhere a database I had set to hide the DB window at startup began showing the dang window. It doesn't matter how many times I set/unset/reset the property, it has no effect. I've tried...
3
7097
by: Oren | last post by:
Hi, Is there a way to hide the connection information of linked SQL Server tables from users? It's easy to open a system table and find the connection info, and if the username and password are...
4
4370
by: Blaine | last post by:
Does anyone know how I can hide a form from the TaskManager? I've set the ShowInTaskbar to False, but when using Alt-TAB to switch between applications, it appears as a blank icon. I can set it...
0
1449
by: midlothian | last post by:
I have some long Excel routines that I would like to run from my database in a hidden, second instance of the same Access db. The macro I pass to the shell command to open the second instance...
5
8938
by: xrado | last post by:
when i say window.hide(), window dont hide imidetly i want to hide it for a few seconds, do something and then show it back how can i do this? i have this example: import pygtk,time...
2
4882
by: Keerthivasan1018 | last post by:
Hi Am looking to Hide or Show the Database window by click the command button which is located on my Settings form Some one please help me to find how its possible. Thanks in Advance
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.