473,379 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Unhide Database Window

Hello to the group. I have been unsuccessful at unhiding the database
window via code. The most I have gotten is to open the unhide dialogue from
a command button on a form, but then I still have to select the datbase from
the dialogue box and click unhide. Is there a more direct method via code?
I use access 2000 but am transitioning to access 2003.
Nov 13 '05 #1
4 7052
Caimito, try this code to unhide
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
DoCmd.ShowToolbar "Container", acToolbarNo

Then to rehide
DoCmd.SelectObject acTable, , True
DoCmd.ShowToolbar "Container", acToolbarYes

I have the code in a module and I access it via an autokeys macro, which
means that when I hit the right combination of keys, it unhides it, then by
hitting another combination, I can hide it.

dixie

"caimito" <ca*****@optonline.net> wrote in message
news:4l**********************@news4.srv.hcvlny.cv. net...
Hello to the group. I have been unsuccessful at unhiding the database
window via code. The most I have gotten is to open the unhide dialogue
from a command button on a form, but then I still have to select the
datbase from the dialogue box and click unhide. Is there a more direct
method via code? I use access 2000 but am transitioning to access 2003.

Nov 13 '05 #2
Use SelectObject, with True for the InDatabaseWundow argument, e.g.:

DoCmd.SelectObject acTable,,True

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"caimito" <ca*****@optonline.net> wrote in message
news:4l**********************@news4.srv.hcvlny.cv. net...
Hello to the group. I have been unsuccessful at unhiding the database
window via code. The most I have gotten is to open the unhide dialogue
from a command button on a form, but then I still have to select the
datbase from the dialogue box and click unhide. Is there a more direct
method via code? I use access 2000 but am transitioning to access 2003.

Nov 13 '05 #3
I received two responses and they both were helpful. The selectobject
method single line suggestion was the simplest. Although I tried to use
the longer response I did not find the toolbar "container". To hide the
database window again I simply used the selectobject and used the hide
method. Why didn't MS just include the unhide method as well? Anyway
thanks much for both responses.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4
Sorry, imagegeek2, the DoCmd.ShowToolbar "Container", acToolbarNo and its
Yes version referred to a specific toolbar on my system. Didn't mean to
confuse you, just didn't think. Brain in neutral lately :-)

dixie

"Imageek2" <no****@devdex.com> wrote in message
news:41**********************@news.newsgroups.ws.. .
I received two responses and they both were helpful. The selectobject
method single line suggestion was the simplest. Although I tried to use
the longer response I did not find the toolbar "container". To hide the
database window again I simply used the selectobject and used the hide
method. Why didn't MS just include the unhide method as well? Anyway
thanks much for both responses.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #5

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

Similar topics

5
by: mooeypoo | last post by:
Hello all, I'm a php developer. I have been using a very simple script to hide/unhide divs in my script: function DisplayI(obj) { obj.style.display=("none"==obj.style.display? "block" :...
2
by: Peter K | last post by:
How do I Hide/Unhide the Main Database Window in VB?
7
by: MLH | last post by:
Is there any case you can imagine that A97 would NOT display the Unhide option under the Window menu after running this line... Me.Visible = False Yes, its happening to me. The Unhide choice...
5
by: MLH | last post by:
I used this line in A2.0 to unhide the database window: DoCmd.DoMenuItem A_FORMBAR, 4, 4, 0, A_MENU_VER20 Although it will work in A97, it will also unhide anything else that's hidden on each...
8
by: Mészáros Tamás | last post by:
Hi all, how can I set an app's main window to visible from an other application? My problem is, that I know only the handle of the other app's main process, because the application's main window...
4
by: g3000 | last post by:
I have seen examples of hiding and showing a div What I want to do is have a table with six columns. The sixth column is a check box to Unhide a div that is a form. I want it to show on top of...
5
by: victorcamp | last post by:
Applications I work with routinely hide the database window on Startup, which, once open, return this value: CurrentDb.Properties! = False During maintenance, I use a special keystroke to close...
3
by: toodi4 | last post by:
I'm using a javascript that hides and unhides text based on a button click. It works great across static fields on a form. The problem I have is that I'm trying to hide and unhide various fields...
3
by: =?Utf-8?B?aWxy?= | last post by:
Hi All I am developing an vb 2005 winforms application that connects to a database and displays a datagridview of the data. A user can select and then edit, or create a new entry by opening a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.