I have VB6 program talking to several remote dumb terminals via a winsock connection. I would like to setup an error event trap but so far have not been able to do so. No matter how is configure the trapping routine, the compiler returns the following error:
"Procedure does not match...
Update of sorts.
When you add multiple MSComm controls to a form, VB names them uniquely. First one is MSComm1, second is MSComm2, etc.
Since that is the case, the only way I could handle the OnComm events was to create one for each control. Once done, I was now able to process multiple...
How do you set the index?
Right now, I have two MSComm controls on the form. Is the index set automatically because there are two controls?
When I try to open a port one using this method:
With MSComm1(0)
.CommPort = iport
.Settings = "9600,n,8,1"
.EOFEnable = True
.InputLen = 0...
Thanks for your response everyone. I'll be trying to get this going sometime today. As far as the number of ports go, I'm using a RS232-Ethernet(Wireless) adapter on each scale. The drivers loaded on the PC then make the IP to Com Port association and then everything behaves as if there was...
I'm using VB6 and I have successfully used MSComm to communicate with a scale. Now I want connect 5 scales and use the ONCOM event for each of them.
I did some searching here and I did find a reference to the MSComm1.index property and setting it to 0. Every time I do so, I get an error at...
I have data that is getting extracted from a table and assembled into an array. While it will always be a two dimension array, I have no idea of the bounds until it begin the extraction, therefore some sort of fixed display method on the form will not work so well.
The data need only be...
I am trying to get MSComm based communications routines running in my Access VBA code:
Private Sub Form_Load()
On Error GoTo load_error
Dim MSComm1 As MSComm
' Open the serial port
MSComm1.CommPort = 1
MSComm1.Settings = "9600,N,8,1"
MSComm1.InputLen = 0...
longhair, thanks for your response
I inserted your code and I'm not getting an error and the record count is greater than 0. So, how do I retreive the data now. If I use [PVDocs].[FILFilName] I get an error saying that it is not found in this collection. The query works because when I run it...
I have a form built on query1. query2 contains records that are related to query1 via the query1 primary key. I want to put a button on the form that will retreive a record from query2 that matches the primary key value of query1 and has a "like" condition in another one of it's fields. Once...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.