Hi i have this code which when button is pressed it will go and open the file, how do i take into account if the file is not present and give the user a msg saying file is not present!
Private Sub cmdCopyOrder_Click()
Set objWSHShell = CreateObject("WScript.Shell")
objWSHShell.Run "Z:\StockSystem\CopyOrders\" & Me.txtOrderNumber.Value & ".msg"
End Sub
Private Sub cmdCopyOrder_Click()
Set objWSHShell = CreateObject("WScript.Shell")
objWSHShell.Run "Z:\StockSystem\CopyOrders\" & Me.txtOrderNumber.Value & ".msg"
End Sub