MSComm32 (1 Viewer)

Freshman

Registered User.
Local time
Today, 14:39
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?

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
 

Freshman

Registered User.
Local time
Today, 14:39
Joined
May 21, 2010
Messages
437
Thanks I also saw that link but was not of much help. I eventually found another which, in short gave the advice to create a batch file on the fly and execute that.
Inside the batch file you will echo the commands and special characters to the com port
eg: echo texthere >\\.\com3

Thanks
 

Users who are viewing this thread

Top Bottom