Opening 2nd database and Word doc problems
FIRST: Thanks to all who help on this web site. All of you have been a great help. I really appreciate it.
Have: Access 97
Database 1
Database 2
******Problem 1******
DB1, when open and maximized has a Cmd button that opens DB2 by way of a hyperlink address.
Results: No problem. DB2 opens – maximized, and DB1 is minimized to the Toolbar.
Problem: DB2 has a Cmd button used to exit (close) DB2, and it work fine, but DB1 stays minimized down on the toolbar.
Question: I have tried all I know…I think:>)
To the DB2 close button code, is there code to maximize DB1 when DB2 closes?
******Problem 2******
In the above Database 2:
In DB2 I have a hyperlink that opens a Word Document with toolbars turned off that works great except; the Word document is not maximized. The document is not minimized, but the whole application is about 80%.
I can maximize it manually, but I would like it to maximize when it opens.
Any suggestions, threads, ...?
THIS IS THE CODE TO OPEN THE WORD DOCUMENT.
Oak
FIRST: Thanks to all who help on this web site. All of you have been a great help. I really appreciate it.
Have: Access 97
Database 1
Database 2
******Problem 1******
DB1, when open and maximized has a Cmd button that opens DB2 by way of a hyperlink address.
Results: No problem. DB2 opens – maximized, and DB1 is minimized to the Toolbar.
Problem: DB2 has a Cmd button used to exit (close) DB2, and it work fine, but DB1 stays minimized down on the toolbar.
Question: I have tried all I know…I think:>)
To the DB2 close button code, is there code to maximize DB1 when DB2 closes?
******Problem 2******
In the above Database 2:
In DB2 I have a hyperlink that opens a Word Document with toolbars turned off that works great except; the Word document is not maximized. The document is not minimized, but the whole application is about 80%.
I can maximize it manually, but I would like it to maximize when it opens.
Any suggestions, threads, ...?
THIS IS THE CODE TO OPEN THE WORD DOCUMENT.
Code:
Dim WordDoc As Object
Dim strDocument As String
strDocument = "C:\LubeDb\Instructions.doc"
Set WordDoc = CreateObject("Word.Application")
WordDoc.Documents.Open strDocument
[COLOR=green]' Turn all the toolbar off.[/color]
WordDoc.CommandBars("Standard").Visible = False
WordDoc.CommandBars("Formatting").Visible = False
WordDoc.CommandBars("Web").Visible = False
WordDoc.CommandBars("Picture").Visible = False
WordDoc.CommandBars("Control Toolbox").Visible = False
WordDoc.ActiveWindow.ActivePane.DisplayRulers = False
Oak