Works great! However in your close_cmd button you must comment out the objapp.quit() because vb.net claims it's ambiguous (which is why i put the me.close in there). Also, I read somewhere that we shouldn't use the unload command--I believe it was from Rollarshade, so I didn't. Now--how would I load data into the Word document using a SQL Server?
Code:
If objDoc Is Nothing Then
MsgBox("Application not running")
Else
Me.Close()
'objApp.Quit()
objDoc = Nothing
objApp = Nothing
End If
Code:
If objDoc Is Nothing Then
Me.Close()
Else
MsgBox("Please close application first")
End If