How to send and receive data from a server using VBA and Winsock #1749
Unanswered
nectorprime
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Experts
I have been trying very hard to see if the VBA Code below can work, that is sending and receiving data in MS Access using VBA/Winsock via TCP/IP but to no luck. I assemble the code below using using VBA code I got on this site, that both the Winsock library and the functions for starting Winsock.
(1) I able to ping the remote server with no problem
Could it be I'm making a mistake by calling the code from the MS Access form as follows:
Starting Winsock
Call Main
Sending Data
Dim lngStatus As Long
Dim strData As String * 10240
'```
Read maximum of bytes from serial port.
lngStatus = recv("192.168.1.33,8888", strData, Len(strData), 0)
Beta Was this translation helpful? Give feedback.
All reactions