473,671 Members | 2,511 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show or Hide the Database Window in Ms Access

1 New Member
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
Jun 21 '07 #1
2 4891
puppydogbuddy
1,923 Recognized Expert Top Contributor
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

Try:
Expand|Select|Wrap|Line Numbers
  1. Private Sub YourButton_Click()
  2. If Me.YourButton.Caption = "Hide" Then
  3.    Me.YourButton.Caption = "Show"
  4.    Application.RunCommand acCmdWindowUnhide
  5. Else
  6.    Me.YourButton.Caption = "Hide"
  7.    Application.RunCommand acCmdWindowHide
  8. End If
  9. End Sub
  10.  
Jun 21 '07 #2
ADezii
8,834 Recognized Expert Expert
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
I'm not exactly sure what you mean, but if you are trying to modify the Display Database Window Option in the StartUp Options from code, try this:
Expand|Select|Wrap|Line Numbers
  1. CurrentDb.Properties("StartUpShowDBWindow").Value = True or False
Jun 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
4013
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 module that opens a form. When the form opens, the database window is still present and visible. I thought the first line of the macro would run to completion before the second line started and certainly before any lines in Initialize() were...
1
1592
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 setting the property from code, still won't hide. I've checked via code to make sure the property was indeed created and set in the DB properties collection; it was, and the thing still shows. I've even created a brand spanking new mdb file and...
2
11902
by: Len4ik | last post by:
If I open Microsoft Access project without database window, how can I show it from VBA? I don't use startup option "Show database window". In the project disable option "special key". How can I show database window from VBA in opening Access project? Any ideas?
9
2832
by: Mark | last post by:
Hi All, I am trying to use the function found on the MVP site http://www.mvps.org/access/api/api0019.htm to hide the Access window. I must be missing something as I keep getting an error message: "You entered an expression that requires a form to be the active window". I have a popup form set to open when the DB is opened. On the open event of the form, I have the following code: fSetAccessWindow (SW_HIDE) as instructed on the web page....
1
11298
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus Allow Toolbar/Menu Changes Use Access Special Keys
4
1652
by: MLH | last post by:
Is there a simple way to hide built-in toolbars in A97?
2
14115
by: Dean Slindee | last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports already written and stored in an Access 2002 database; or 2) execute the print of a report stored in an Access 2002 database? Thanks, Dean Slindee
0
1454
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 contains code to 'Hide' the database (from Dev's site) and also the code which runs the Excel routine. It then quits the database when the code has finished running. Here is my code to open a new instance of my db:
1
3799
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown properties alt in img tag istead of picture . place of the pictures is saved in the database(my database is with mysql) and in home page i fetch properties of the product and address of place that pictures is located output of the code in the...
0
8483
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
8926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8824
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
8603
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
8673
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...
0
7444
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5703
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
4227
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...
1
2818
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.