Here's what I'm looking to try and do. I would like the EU to click a button and access 97 to make a new word file with the name based on a text field (ticket number) on the form. The veriables work fine but I'm not quite sure how to have it create a blank document.
Here's what I have so far.
Dim oApp As Object
Dim strFileName As String
Dim strFilePath As String
Set oApp = CreateObject("Word.Application")
strFileName = Me!txtTicketNumber & "Approval" & ""
strFilePath = "\\file-s1\iriseuc\rtm\97\EmailApproval\" & strFileName & ".doc"
' MsgBox's to see the output veriables
MsgBox strFileName
MsgBox strFilePath
' DoCmd.OutputTo acOutputForm, , acFormatRTF, "\\file-s1\iriseuc\rtm\97\EmailApproval\" & strFileName & "", True
oApp.Documents.Open (strFilePath)
oApp.Visible = True
Here's what I have so far.
Dim oApp As Object
Dim strFileName As String
Dim strFilePath As String
Set oApp = CreateObject("Word.Application")
strFileName = Me!txtTicketNumber & "Approval" & ""
strFilePath = "\\file-s1\iriseuc\rtm\97\EmailApproval\" & strFileName & ".doc"
' MsgBox's to see the output veriables
MsgBox strFileName
MsgBox strFilePath
' DoCmd.OutputTo acOutputForm, , acFormatRTF, "\\file-s1\iriseuc\rtm\97\EmailApproval\" & strFileName & "", True
oApp.Documents.Open (strFilePath)
oApp.Visible = True