What I am trying to do is
FileCopy "C:\ViperResides\Viper.mdb", "\\MikeHP\ViperDaily\" & Format([Forms]![CodeBUSystem]![Current]) + ".mdb"
Forms!CodeBUSystem!abc = 1
and when other computer is connected
Forms!CodeBUSystem!abc = 2
I had some success with
On Error Goto ErrHandler:
N = 1 / 0 ' cause an error
'
' more code
'
Exit Function (and leaving it out)
ErrHandler:
Forms!CodeBUSystem!abc = 1
Resume Next
But On Error Resume Next seems to be cancelled for the next lines which are copying across the network.
More work to be done
FileCopy "C:\ViperResides\Viper.mdb", "\\MikeHP\ViperDaily\" & Format([Forms]![CodeBUSystem]![Current]) + ".mdb"
Forms!CodeBUSystem!abc = 1
and when other computer is connected
Forms!CodeBUSystem!abc = 2
I had some success with
On Error Goto ErrHandler:
N = 1 / 0 ' cause an error
'
' more code
'
Exit Function (and leaving it out)
ErrHandler:
Forms!CodeBUSystem!abc = 1
Resume Next
But On Error Resume Next seems to be cancelled for the next lines which are copying across the network.
More work to be done
