I have a log on page with the textbox and four controls, one of the controls is a Help button. When clicking on this button will ask the user if they would like to view a manual. this manual is a word document. Can Access 2000 do this? Thanks!!!
Option Compare Database
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOWNORMAL = 1
Public Sub OpenApp()
ShellExecute Me.hwnd, vbNullString, "C:\temp\grantdonovancv2.doc", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
this is what I did:
Private Sub Command26_Click()
Dim objWord As Word.Application
[tt]If MsgBox("Would you like to view the HR Help Desk Manual, if however you are experiencing technical difficulties please contact Jeanette Stuart", vbYesNo) = vbYes Then
Set objWord = CreateObject("Word.Application"
objWord.Documents.Open ("K:\HelpDesk\Help_desk_Document.doc"
objWord.Visible = True
End If
Set objWord = Nothing[/tt]
But it doesn't work, I mean it doesn't even ask the question. Any idea why????
Dim objWord As Object
Set objWord = CreateObject("Word.Application"
If MsgBox("Would you like to view the HR Help Desk Manual, if however you are experiencing technical difficulties please contact Jeanette Stuart", vbYesNo) = vbYes Then
Set objWord = CreateObject("Word.Application"
objWord.Documents.Open ("C:\My Documents\hoze1.doc"
objWord.Visible = True
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.