I have a command button opening a word doc with the following:
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
AppActivate oApp
oApp.Documents.Open FileName:=FilLoc & "C:\FirstUSA\Prospects\" &
Forms![FirstUSA]![Phone1] & ".doc"
Set oApp = Nothing
The above path may also have a .pdf INSTEAD of a .doc extention. So I need the code to open the file in either format depending on which document type exists. I'm not sure of the IF Then procedure.
Thanks in advance!
Clint