This event occurs when the value of the CommEvent property changes, indicating that either a communication event or an error occurred.
Private Sub comm_OnComm( )
The CommEvent property contains the numeric code of the actual error or event that generates the OnComm event. Note that setting the RThreshold or SThreshold properties to 0 disables trapping for the comEvReceive and comEvSend events, respectively.