|
-
Feb 5th, 2000, 06:25 PM
#1
Thread Starter
New Member
How can i read from the comm port with code? I am wanting to put this code in access 2000. thanks,
Dan
-
Feb 6th, 2000, 03:56 PM
#2
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|