call sub.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 ()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MS Access Report Error Message 2
Blank Fields in Report 2
Change Order on a Report! 2
Enter Date on Emailing 6
Adding a CC to email code! 7
Page numbering 4
Emailing Question from my DB 2
Calculation Problem 1

Back
Top