[AccessD] Late binding Withevents

John Colby jcolby at colbyconsulting.com
Mon May 5 07:33:09 CDT 2003


Folks,

I am trying to use the late binding technique where you use compiler
constants to use early binding when developing and late binding for
production.  The following gives a compile error:

#Const Dev = False
#If Dev = True Then
Dim WithEvents myOlApp As Outlook.Application
#Else
Dim WithEvents myOlApp As object
#End If

on the dim statement in the #Else clause.

Are we saying that we can't use late binding if we dim an object withevents?
If that is true, it is a rather serious flaw in the concept!!!

John W. Colby
www.colbyconsulting.com




More information about the AccessD mailing list