declaring Variables In Ms access
Variable not defined on tcpClient in Ms Access
How do I declare this thing proper
How do I declare this thing proper
Private Sub CmdTransferData_Click()
' The name of the Winsock control is tcpClient.
' Note: to specify a remote host, you can use
' either the IP address (ex: "121.111.1.1") or
' the computer's "friendly" name, as shown here.
tcpClient.RemoteHost = "192.168.1.161"
tcpClient.RemotePort = 8080
tcpClient.Connect
End Sub
Private Sub tcpClient_DataArrival _
(ByVal bytesTotal As Long)
Dim dataToSend As String
dataToSend = CmdSales(" ", True)
tcpClient.SendData dataToSend
txtoutput.Text = dataToSend
End Sub
ASKER
Okay I think you are right, I thought Winsock 2 is part of part of Ms Access, do I have to install separately and reference the library as well ?????????
Regards
Chris
Regards
Chris
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Port 8080 is normally http/https (proxy). Why do you need winsocks?
ASKER
Port 8080 is normally http/https (proxy). Why do you need winsocks?
We have another port not 8080.
Regards
Chris
We have another port not 8080.
Regards
Chris
Open in new window
And of course you need a reference to mswinsck.ocx