- Local time
- Today, 08:39
- Joined
- Feb 28, 2001
- Messages
- 30,964
I need a system that, once the socket is opened, receives incoming data via an event
Part of your problem is that out of the box, Access is single threaded. In that basic context, you can't make something that both waits and keeps on executing simultaneously.
We have had inquiries in the forum that talk about using API "Fork" and process-thread calls to somehow set up a child thread to trigger AND WAIT for I/O to complete on your socket channel. The child thread could handle issues in I/O completion asynchronously and then, as its dying (well... exiting) breath, pass information to its partner thread about the I/O completion. I don't recall the result of those experiments in multi-threading, but that is how you would do it.
The original question runs afoul of the fact that Access has no I/O completion event because such an event would be unrelated to forms or reports. It can only do I/O synchronously out of the box so there is no need for an async event in that case.