Comm32 Logo
Home Button  Buy Button 

Topic:   Access 2016 and OnComm

By: MattPosted on: Feb 6 2017 at 02:06:26 PM

I am trying to use your control to communicate with scales via the serial port, but I am having problems where the OnComm event never seems to be fired.

I call the following code when the form loads:
With SComm3
.CommPort = "3"
.Settings = "9600,N,8,1"
.EofChar = 26
.EOFEnable = True
.InputLen = 0
.RTSEnable = True
.RThreshold = 1
.portopen = True
End With

Any help would be much appreciated.



By: GuestPosted on: Feb 6 2017 at 08:32:17 PM
Do you have the control on a form?

How sure are you that data has arrived in the receive buffer.

Just for debuggong. Place a button on the form that reads the data from the serial port. When you think the oncomm event should have been triggered click the button to see if there really is some data.

Reply - add a comment to this topic.

You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected.

Topic:- Access 2016 and OnComm

Enter the numbers.

Your name here is optional