Multiple Forms & Subs ; Objects in Modules
Posted on 1998-07-05
I am writing some code that talks to some equipment through the COM Port. I use the MSCOMM control and one custom SUB to decifer the output and input from the equipment. I want to talk to this SUB from several Forms, so I tried putting it into a Module so all the forms could see it. But when I run it I get an "Object required" Error (Referring to the MSCOMM Object). But as far as I can tell there is no way to attach or insert an object into a module. I am pretty new at this Language, so should I be using a class module or something. Basically, I want several forms to use the same sub to talk to the COM port. How would I go about doing this.