How can i read from the comm port with code? I am wanting to put this code in access 2000. thanks,
Dan
Printable View
How can i read from the comm port with code? I am wanting to put this code in access 2000. thanks,
Dan
To send and retrieve data to/from the comm-port, you need the MSComm Control
First set the settings of the control (comm-port number,...)
to send data:
MSComm1.Output = "...." 'the command you want to send to the comm-port
To retrieve data:
dim ReceiveString as String
ReceiveString = MSComm1.Input
You can place this code in a loop to check constantly:
do while doevents
if len(mscomm1.input) > 0 then
'data received
end if
loop