PDA

Click to See Complete Forum and Search --> : Calling a Sub


EyeTalion
Mar 30th, 2003, 03:08 PM
I'm trying to call a Sub that is located in a module, from a click event in my form. When I debug the app, it just goes through the code, but never goes to the procedure...any suggestions?


in form...gets executed on button click event

Module.edit_check(txtItem.Text, txtActivity.Text, txtJob.Text)


in module

Public Sub edit_check(ByVal b As String, ByVal c As String, ByVal d As String)

Pirate
Mar 30th, 2003, 04:08 PM
Weird !
Save your proj , close the IDE , run it again and see what happens?

hellswraith
Mar 30th, 2003, 08:56 PM
I think the word Module is a keyword and can't be used. Change your module to a different name and try it.

robbedaya
Mar 31st, 2003, 03:44 AM
indeed, the word module may notbe used al a name of a module, you'd better call it Module1 or something similar. Then It should work

Pirate
Mar 31st, 2003, 04:03 AM
You can use your sub directly without referring to the module name if it's publicly declared .