jo.stanley
Board Regular
- Joined
- Apr 13, 2004
- Messages
- 177
I am using Access 2000 and I am trying to open a word document within Private Sub Command103_Click()
and it isn't working - the code I am using is as below - can anyone see why it won't work
Dim objWord As Word.Document
Set objWord = GetObject("C:\BATS\BATS\Exports\Incorrect.doc", "Word.Document")
On Error Resume Next
objWord.Application.Visible = True
objWord.Application.WindowState = wdWindowStateMaximize
objWord.Application.Activate
and it isn't working - the code I am using is as below - can anyone see why it won't work
Dim objWord As Word.Document
Set objWord = GetObject("C:\BATS\BATS\Exports\Incorrect.doc", "Word.Document")
On Error Resume Next
objWord.Application.Visible = True
objWord.Application.WindowState = wdWindowStateMaximize
objWord.Application.Activate