call sub.

S

SIN

hi,
when i call to private sub:
Exception (v_error_position, sMyText , rsimportfile(0))
i get error - "expected := "

the sub:
Private Sub Exception(error_position As Integer, MyText As String, invoiceid
As Integer)

thanks
 
O

Ofer Cohen

Try adding the word Call before that

Call Exception (v_error_position, sMyText , rsimportfile(0))

Or, remove the ()
Exception v_error_position, sMyText , rsimportfile(0)

You can call the sub the way you did it only if there is one parameter
passed to it, when you have more then one, then use the Call or remove the ()
 
Top