HartwellTelecoms
Technical User
Hi Guys,
Im trying to use VBA within Access to connect to the call centre and control a Telset.
I have been trying to search forums and have asked the questions before however not really got anywhere.
What I have done so far:
obtained the abcon32.ocx from Aspect and in Visual Basic for Application I went to Tools>References and added it
Tried to register it register it via opening a form, Tools>ActiveX Controls however said said it could not be added/deleted. Install/remove the control using a separate setup utility.
Im stuck at what to put for the code,
Function connect()
Dim abcon As abconlib.abcon
abcon.Host = "127.0.0.1"
abcon.PortType = 1
abcon.Port = 7000
If (abcon.OpenConnection = 0) Then
MsgBox "Success"
Else
MsgBox "Failure"
End If
End Function
It says "Object variable or With block variable not set"
Im guessing im not setting abcon correctly, anyone got any ideas? Example code of what you or ready have would be great so I could copy n paste and it should work (had an example before but was missing all the things it referenced)
Im trying to use VBA within Access to connect to the call centre and control a Telset.
I have been trying to search forums and have asked the questions before however not really got anywhere.
What I have done so far:
obtained the abcon32.ocx from Aspect and in Visual Basic for Application I went to Tools>References and added it
Tried to register it register it via opening a form, Tools>ActiveX Controls however said said it could not be added/deleted. Install/remove the control using a separate setup utility.
Im stuck at what to put for the code,
Function connect()
Dim abcon As abconlib.abcon
abcon.Host = "127.0.0.1"
abcon.PortType = 1
abcon.Port = 7000
If (abcon.OpenConnection = 0) Then
MsgBox "Success"
Else
MsgBox "Failure"
End If
End Function
It says "Object variable or With block variable not set"
Im guessing im not setting abcon correctly, anyone got any ideas? Example code of what you or ready have would be great so I could copy n paste and it should work (had an example before but was missing all the things it referenced)