MSComm32 Problem (1 Viewer)

G

gntpcnut

Guest
I have an application I converted from Access 2.0 to Access97. It uses a control button to open a cash register. In 2.0 I used calls to User.dll. Those functions no longer exist in user32.dll! Microsoft could not tell me the names of the new functions so I tried using mscomm32. It seems to behave strangely. If I open the form in design mode then switch to form mode it works, but if I open my database normally(without holding the shift-key down) and click on the switchboard to open my form I get errors that say the port is already open. I am checking for controlname.portopen = true, and if it is not then I make it true. It is like the portopen is not working. I would like to use portopen=true when my form loads and portopen=false when it closes. Then in my code for the button send the appropriate characters to the port. Any help would be greatly appreciated. If you know any other method for doing this that would also be considered. Thanks!
 

Users who are viewing this thread

Top Bottom