OK so if you are using VB6 why did you not consider posting in the
VB forum rather than the MS Access forum?
as PK stormy says a Type 13 error usually means you have a wrong datatype for the specified item
usually it means you have an alphanumeric where you should have a numeric, or a date instead of anything else and so on.
if i were you i'd put a watch on the line that is reporting the error and read what is actually being executed
you could use a msgbox to display it if you are not certain how to set a watch... put the msgbox statement before the winsock call, again as PK stormy says.
its actually a very good technique in my books to assign the results of such a statement to a variable before using it in something like this or as SQL.