Receive data from my reader using MScomm
Please have me to check the code below, and give me a idea to solve it. THK :rolleyes:
Option Explicit
Private Sub MSComm1_OnComm()
Dim tRECEIVED As String
If MSComm1.CommEvent = comEvReceive Then
tRECEIVED = MSComm1.Input
Label2.Caption = tRECEIVED
Label3.Caption = "Detected"
Else
Label3.Caption = "Not detect"
End If
End Sub
Private Sub Form_Load()
Label1.Caption = "Attach an RFID Tag Reader"
Label2.Caption = ""
Label3.Caption = "Not detect"
MSComm1.PortOpen = True
End Sub

