Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Rich7638

  1. Rich7638

    Error trapping with a Winsock control array

    Thanks Disferente, that works, although I thought I already tried that method as shown in my orginal post. Maybe I forgot the ByVal's.
  2. Rich7638

    Error trapping with a Winsock control array

    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...
  3. Rich7638

    Multiple ports open simulteanously?

    A little knowledge goes a long way. Thank you everyone for educating me in the ways of control arrays. It all works great now. Rich
  4. Rich7638

    Multiple ports open simulteanously?

    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...
  5. Rich7638

    Multiple ports open simulteanously?

    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...
  6. Rich7638

    Multiple ports open simulteanously?

    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...
  7. Rich7638

    Multiple ports open simulteanously?

    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...
  8. Rich7638

    What is the best way to display array data in a form

    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...
  9. Rich7638

    Object variable or With Block variable not set

    Thanks PHV, Once I put the control in the form and removed the DIM statement, I no longer get the error. Rich
  10. Rich7638

    Object variable or With Block variable not set

    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...
  11. Rich7638

    How to code a query

    longhair I have it sorted out. txtFile = rstDtl!FIlFileName worked fine. Thank you for your help. rich
  12. Rich7638

    How to code a query

    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...
  13. Rich7638

    How to code a query

    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...

Part and Inventory Search

Back
Top