Freshman
Registered User.
- Local time
- Today, 14:52
- Joined
- May 21, 2010
- Messages
- 437
Hi All,
The code below is giving me a "ActiveX component can't create object 429" error.
The MSComm32.ocx file did register sucessfully via Cmd
Any help would be appreciated.
Running Access 2007 but also tried it on a Access 2013 machine
I had to browse to the ocx file as Microsoft Comm Control 6.0 wasn't on the list. Not sure it that means anything?
The code below is giving me a "ActiveX component can't create object 429" error.
The MSComm32.ocx file did register sucessfully via Cmd
Any help would be appreciated.
Running Access 2007 but also tried it on a Access 2013 machine
I had to browse to the ocx file as Microsoft Comm Control 6.0 wasn't on the list. Not sure it that means anything?
Code:
Public Function WriteComm()
Dim MSComm1 As New MSComm
Dim msgtxt As String
msgtxt = "123"
MSComm1.CommPort = 1
MSComm1.Settings = "2400,n,8,1"
MSComm1.PortOpen = True
MSComm1.Output = Chr(27) & Chr(81) & Chr(65) & msgtxt & Chr(13)
MSComm1.PortOpen = False
End Function