Error Message!

ocp&mcsd

The Hitman
Local time
Today, 14:11
Joined
Jan 25, 2006
Messages
113
Hello all,
I have an access application. I imported a form to it with all related tables and queries and modules from another application. Unfortunetaly, it didn't work.
It gives me this error message when openning the form:
The expression On Load you entered as the event property setting
produced the following error:
User-defined type not defined.


Sorry for bothering you.
Thanks & Regards

Mark K.
 

Attachments

I managed to open the Zip file with no problem.

The error is not actually in the OnLoad event of the form (access is lying a little bit). When you go into the code to compile it the error is caused on the following lines:

Dim appOutlook As New Outlook.Application
Dim nms As Outlook.NameSpace
Dim flds As Outlook.Folders
Dim fld As Outlook.MAPIFolder
Dim exp As Outlook.Explorer
Dim ins As Outlook.Inspector

These lines, or at least some of them, are in the code in the form and also in the module basTestCode. It would appear that you failed to copy some code that failed to create the Outlook "type".

Maybe somebody else can help you further now that we have identified what part of the code is falling over.

HTH
 
Thank you so much mr. Kevin
But still I am facin the same problem.
Thanks & Regards

Mark K.
 
Hi!

When you imported the form did you check if it has any module?

JonyBravo
 
You may just need to include a Reference to the Outlook nn.n Object Library. <ALT> F11 Tools>References
 
Thank you Mr. RularGuy,
I got it I got it.....
Thank you so much.....
 
Last edited:

Users who are viewing this thread

Back
Top Bottom