V
vk
I referenced the MSComm32.ocx in Tools/References menu;
it is listed as "Microsoft Comm Control 6".
However, when I try to reference the control MSComm, I
get a "Variable not defined" error.
Any help would be appreciated.
-VK
My sample code below:
-----------------------
Private Sub cmdSend_Click()
' Use COM1.
MScomm.CommPort = 1
' 9600 baud, no parity, 8 data, and 1 stop bit.
MScomm.Settings = "9600,N,8,1"
' Open the port.
MScomm.PortOpen = True
' Send the string to the port.
MScomm.Output = Me!MgsStr
' Close the serial port.
MScomm1.PortOpen = False
End Sub
it is listed as "Microsoft Comm Control 6".
However, when I try to reference the control MSComm, I
get a "Variable not defined" error.
Any help would be appreciated.
-VK
My sample code below:
-----------------------
Private Sub cmdSend_Click()
' Use COM1.
MScomm.CommPort = 1
' 9600 baud, no parity, 8 data, and 1 stop bit.
MScomm.Settings = "9600,N,8,1"
' Open the port.
MScomm.PortOpen = True
' Send the string to the port.
MScomm.Output = Me!MgsStr
' Close the serial port.
MScomm1.PortOpen = False
End Sub