ACC97: Cannot Use Early Binding with Graph 8.0 Using AutomationID: Q190735
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
In Microsoft Access, you can use Automation to connect to the Microsoft
Graph object model. However Microsoft Graph does not support early binding.
Therefore, when you use Automation to connect to Microsoft Graph, you must
use late binding.
An easy way to see the difference between early and late binding is to look at the way objects are declared in code. Code that implements late binding uses the "As Object" clause when dimensioning the variable, and sets the object using the CreateObject function during run time. Code that implements early binding declares the object at the start of the code by using the Dim statement.
' Declare an object variable to hold the object
' reference. "Dim as Object" causes late binding.
Dim ExcelSheet As Object
Set ExcelSheet = CreateObject("Excel.Sheet")
Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlSheet As Excel.WorkSheet
Set xlApp = CreateObject("Excel.Application")
Dim GraphObj As Object
Set GraphObj = Forms!MyForm!MyGraph.Object
Keywords : kbdta AutoGrph
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 27, 1999