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:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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:
Upvote 0
Hi welshgasman sir, thanks for the help. Sorry for late reply.
Am checking this and will revert with details. Have a nice day ahead. :)
 
Upvote 0
Simply put:
Late binding = declaring obejct variables as Object.
Early Binding = declaring object variables as a specific type.
 
Upvote 0
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:
Upvote 0
The first two pairs are early binding, the last is late binding (declared as Object).
 
Upvote 0
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.
 
Upvote 0
Yes it is, though there is no point for native Access objects like QueryDef.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top