N
nrms
I'd be grateful if someone could help, if only to direct me elsewhere for a
solution.
I'm using the following code to launch & run a Word 2003 template from a
button on a form in Access 2003. It works well enough, but under Windows 7
RTM the Word Doc opens in a Window **behind** the Access windows with the
focus.
This has never been a problem before, because new opening Windows apps have
always grabbed the screen focus (annoyingly so on occassions). Now for the
first time, it seems, Windows 7 RTM forces the new opening application into
the background. How would I work-round this new behaviour and force the Word
2003 to popup "on top".
Thanks
NigelS
Private Sub Print_Guarantor_Click()
On Error GoTo Print_Guarantor_ClickErr
Dim appWord As Word.Application, docWord As Word.Document
Set appWord = New Word.Application
Set docWord = appWord.Documents.Add("Z:\Templates\Guarantor.dot")
appWord.Visible = True
Print_Guarantor_Click:
Set appWord = Nothing
Exit Sub
Print_Guarantor_ClickErr:
FormattedMsgBox Err.Description
Resume Print_Guarantor_Click
End Sub
solution.
I'm using the following code to launch & run a Word 2003 template from a
button on a form in Access 2003. It works well enough, but under Windows 7
RTM the Word Doc opens in a Window **behind** the Access windows with the
focus.
This has never been a problem before, because new opening Windows apps have
always grabbed the screen focus (annoyingly so on occassions). Now for the
first time, it seems, Windows 7 RTM forces the new opening application into
the background. How would I work-round this new behaviour and force the Word
2003 to popup "on top".
Thanks
NigelS
Private Sub Print_Guarantor_Click()
On Error GoTo Print_Guarantor_ClickErr
Dim appWord As Word.Application, docWord As Word.Document
Set appWord = New Word.Application
Set docWord = appWord.Documents.Add("Z:\Templates\Guarantor.dot")
appWord.Visible = True
Print_Guarantor_Click:
Set appWord = Nothing
Exit Sub
Print_Guarantor_ClickErr:
FormattedMsgBox Err.Description
Resume Print_Guarantor_Click
End Sub