Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to tell if Db window is hidden 1

Status
Not open for further replies.

TheAceMan1

Programmer
Sep 23, 2003
11,174
US
Howdy all . . .

I can hide the [blue]Db window[/blue] with the following:
Code:
[blue]    Docmd.SelectObject acTable, , True
    Docmd.RunCommand acCmdWindowHide[/blue]
and turn it back on with:
Code:
[blue]    Docmd.SelectObject acTable, , True[/blue]
[blue]How can I tell if its in the hidden state?[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
If you are doing it yourself set a flag..
Code:
Public dbWindowState as Boolean

let the db remember what status is the dbwindow holds.

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Does CurrentDB.Properties("StartupShowDBWindow") tell you what you want to know?

Ed Metcalfe.

Please do not feed the trolls.....
 
Actually I'll answer my own question. No, it doesn't! :)

Ed Metcalfe.

Please do not feed the trolls.....
 
No, I don't think it is in db.Properties.
Code:
    Dim dbs As Database
    Set dbs = CurrentDb
    Dim x As Integer
    For x = 0 To dbs.Properties.Count - 1
        Debug.Print dbs.Properties(x).Name
    Next
that results
Code:
Name
Connect
Transactions
Updatable
CollatingOrder
QueryTimeout
Version
RecordsAffected
ReplicaID
DesignMasterID
Connection
ANSI Query Mode
AccessVersion
ProjVer
Auto Compact
Show Values Limit
Show Values in Indexed
Show Values in Non-Indexed
Show Values in Remote
Show Values in Snapshot
Show Values in Server
Use Default Page Folder
Use Default Connection File
Row Limit

But it should be stored somewhere.

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Thanks All . . .

I'd already surmised a variable would be necessary.

Although I've never had to determine if the Db window (or any other access window) is hidden, I can't help but wonder if there's a property or method lying around somewhere! . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
ck1999,
No..It is not the one TheAceman1 looking for..
The code you linked is used to hiding the entire Access Window and show the forms only to make the app look like stand alone. I am sure TheAceman1 certainly know it.

He is talking about the database window.

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
majp,
I found that sight earlier and tried in on access 07. It does not work on this version. It does seem to work on access 03.

ck1999
 
Howdy MajP . . .

Nice piece of work! . . . Beautiful! . . . Poetry in motion!

Have a pinky on me . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Thanks, but Dev Ashish should get the credit, I just googled.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top