Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Late bindings

Status
Not open for further replies.

Bresart

Programmer
Feb 14, 2007
314
ES
Hi, i need to make compatible my Access database with any version of Access, and any version of the .dll files used in the database (i think that if that is accomplished the database will be compatible with any Windows Operative System).

How to make the late bindings for that purpose?

Thanks for any help given.
 
Thanks, dhookom.

I remember a very detailed article in Microsoft KB, it's which i was interested in. I have searched in Microsoft KB "Late binding" and haven't found the article. I found the link in one of these forums, so i have searched "late binding" and there's hundreds of records.

I would need some help for finding this article.

Thanks.
 
No, none of them are the article i refer to.

I have read something on these articles and i am more confused about late binding. For using Access and without interaction with other Office application, do i need to perform late binding? And in what case early binding? Is there any detailed article about early and late binding? All results i have seen in google are confusing or incomplete.

Thanks.
 
If all of those articles aren't the ones you want and they don't explain late binding well enough, I doubt I can add anything.

Maybe if you tell us what dll's your code might use we could provide some advice.

Duane
Hook'D on Access
MS Access MVP
 
Bresart said:
i need to make compatible my Access database with any version of Access
Late binding won't accomplish that. If you have an MDB file in Access2000 format, it can't be opened by Access97, period.

I pretty much use late binding only when referencing MS Office apps. Generally it is better to use early binding.



Joe Schwarz
Custom Software Developer
 
Thanks dhookom, JoeAtWork.

dhookom, the article i'm referring is possibly an article in this forum, not in Microsoft KB. It was very detailed, it could be followed step by step.

JoeAtWork, i'm working with Access 2000. I understand that if i use early binding i make the application compatible with earlier versions (just 98 are hardly still used). But if i use late binding i will make the application compatible with later versions: 2003, XP, 2007 (probably i forget one), all them commonly actually used. So, to use late binding wouldn't be more recommended?
 
dhookom, i have sarted reading the article you pasted: Tony Toew's Late Binding in Microsoft Access.

The third paragraph says:

"You will only encounter an error when your app executes lines of code belonging to the automation app which isn't installed".

Can you say me what is the automation app? A reference?

Which is the relationship between references and late binding?

Thanks.
 
The "automation app" might be Outlook or Excel or Project or other application that you are attempting to use from within Access.

Within your Access code, you can set a reference to the Excel object library. This is early binding and is generally tied to a specific version of Excel. You can use the installed Excel object library (whatever version) if you don't set a reference to Excel and instead use late binding.

Duane
Hook'D on Access
MS Access MVP
 
Thanks dhookom.

I don't totally understand these contents, is there any recommended book about that or that contains detailed explanations about it?
 
I'm curious about this as well.
I read up on the links and I understand the concept, but for example, I do not know how to change the coding using the object. I need to watch for outlook 2003 and 2007 versions.
This code works with early binding
Code:
Dim outMail As Outlook.AppointmentItem
Me.Refresh
Set outMail = Outlook.CreateItem(olAppointmentItem)
outMail.Subject = [Forms]![frmCM]![txtFullName]
outMail.MeetingStatus = olMeeting
outMail.Start = Me.ApptStartDate & " " & Me.ApptStartTime
outMail.End = Me.ApptStartDate & " " & Me.ApptEndTime
outMail.Body = "Meeting Type: " & Me.ApptType
outMail.Send
I looked at for more info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top