What is early binding and late binding

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi
I am new to these concepts.
Not requesting for exact answers.
You may also help me with useful links for these two.

I know Google will help, but trying to seek help from experts here.
Also, I have another question here.
Not sure if I can merge it here only.

How does early binding or late binding affects compatibility when moving from older access version to Office 365.
Please pardon my ignorance, I am novice to access and need to work on these issues.
 
Last edited:

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
I have few access files with me.
These are of older versions
Now these are supposed to work in Office 365.

For this compatibility scenario, what are the points that I should check.
I do not know what will get affected in this migration.
Can experts here guide me in this please.

I am new to access and do not know what are the things that I should check in such scenario.
 
Last edited:

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi welshgasman sir, thanks for the help. Sorry for late reply.
Am checking this and will revert with details. Have a nice day ahead. :)
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
34,188
Office Version
365, 2019, 2016, 2010
Platform
Windows, MacOS
Simply put:
Late binding = declaring obejct variables as Object.
Early Binding = declaring object variables as a specific type.
 

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi,
I might be asking silly or wrong question.Apologies.

I have few such examples in my code.
Am not able to understand if these relates to early binding, late binding or none.

Can anyone of please help me understanding these.
Looking at below examples how to identify if any of these relates to early binding or late bindings.

Or is it even possible to identify by looking at these isolated lines from the code.

Dim Q_EXECUTE As QueryDef
Set Q_EXECUTE =CurrentDb.QueryDefs("QRY_GetServices")

Dim dbSource As DAO.Database
Set dbSource = OpenDatabase(SourceDatabase)

Dim oDB As Object
Set oDB = CurrentProject

To give you an overview, my basic task isconvert all the early binding items from the code to late binding.
 
Last edited:

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
34,188
Office Version
365, 2019, 2016, 2010
Platform
Windows, MacOS
The first two pairs are early binding, the last is late binding (declared as Object).
 

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi RoryA sir, thanks a lot for the help.
Have a nice day ahead. :)

One question , if you get time.
Is it possible to convert all the early binding items to late binding.
Or we have limitations there too.
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
34,188
Office Version
365, 2019, 2016, 2010
Platform
Windows, MacOS
Yes it is, though there is no point for native Access objects like QueryDef.
 

Forum statistics

Threads
1,078,494
Messages
5,340,691
Members
399,390
Latest member
newexcel12

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top