473,796 Members | 2,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7080
Caimito, try this code to unhide
DoCmd.SelectObj ect acTable, , True
DoCmd.RunComman d acCmdWindowHide
DoCmd.ShowToolb ar "Container" , acToolbarNo

Then to rehide
DoCmd.SelectObj ect acTable, , True
DoCmd.ShowToolb ar "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*****@optonl ine.net> wrote in message
news:4l******** **************@ news4.srv.hcvln y.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 InDatabaseWundo w argument, e.g.:

DoCmd.SelectObj ect 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*****@optonl ine.net> wrote in message
news:4l******** **************@ news4.srv.hcvln y.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.ShowToolb ar "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
4779
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" : "none"); }
2
18377
by: Peter K | last post by:
How do I Hide/Unhide the Main Database Window in VB?
7
2014
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 is grayed out after running this line on a form that was opened with the acDialog parm. Guys, this wierd stuff I'm encountering, could some hardware issue be responsible or would a viral element be more likely at fault?
5
1826
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 successive run. Is there a more specific command syntax to unhide a given form (or the database window)?
8
11534
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 is set to hidden, so it doesn't have a mainwindowHandle, so I can't send a message to it. Any idea? Thank's in advance,
4
3669
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 the table to enter in comments. Then click submit in the div form and hide the div. Pop up window is not what I want. I dont want the window like border. Almost like a floating frame in the middle of the table.
5
1819
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 the main form and leave me in the DB Window, but I always have to then unhide it before I can work. I can use this to bring up the Unhide dialog box, but I still have to hit enter to OK the action: DoCmd.RunCommand acCmdWindowUnhide
3
2798
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 that are populated on the page by a database. In other words, sometimes there are 4 fields, sometimes 6. I've used various scripts for the hide/unhide function. This is one I'm using now that I've copied from another source: <script...
3
2451
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 modal form and editing the record. I would like the user to be able to hide either the parent form or the parent and modal form if they are currently editing in the modal form and unhide the parent or both forms from the notification icon. I seem...
0
9680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10230
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10174
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10012
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7548
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5442
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.