WayanS
  • WayanS
  • 50.75% (Neutral)
  • Newbie Topic Starter
7 years ago
Dear All,

I try to use EAGetMail activex object in Ms Access 2002 using the VB6 code samples but producing error when running the apps.

The error message "User-defined typed not defined"
And the apps stop in this code when I debug the apps:


Private Sub lstMail_ItemClick(ByVal Item As MSComctlLib.ListItem)
On Error GoTo lstMail_ItemClick_Error

10 ShowMail Item.Tag
20 Item.Bold = False

On Error GoTo 0
Exit Sub
lstMail_ItemClick_Error:
MsgBox "Line " & Erl & " Error " & Err.Number & " (" & Err.Description & ") in procedure lstMail_ItemClick of VBA Document Form_WebMail"
End Sub


Hopefully anyone could help to resolve the error.
I hope to attach my small apps in this forum but I don't know how to do.

Thank you so much,

Sincerely,
WayanS
ivan
  • ivan
  • 100% (Exalted)
  • Administration
7 years ago
That is because the ListView activeX control has some different usage in MS access.

I built a simple sample project, you can download it from:

https://www.emailarchitect.net/webapp/download/eagetmail_access.zip 

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.