Results 1 to 2 of 2
  1. #1
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332

    Overcoming Access Version problems

    I am curious what other developers do to handle the age old quandary of broken references, and 32 bit/64 bit versioning.

    Many of our applications use objects from Outlook, Excel, and others.. but as we all know our references break down when the Office version changes from our development environment. My personal strategy (not really a company wide strategy) is to use late binding instead of using references. I wonder what some other people do to handle this common entanglement.

    Also, a similar issue arises with 64 bit version of Office. That darn ptrsafe keyword that 64 moans about. The solution advised is:



    #If Vba7 Then
    Declare PtrSafe Sub...
    #Else
    Declare Sub...
    #EndIf

    But plenty of times this fails and it's easier to just comment out the version of the code not applicable to the environment you're sending it to. Anyone else have a method of tackling this issue to make your code more universally acceptable?

    Cheers all.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Late binding is definitely an option. I try to do early binding whenever possible and provide version specific FE files. If I can avoid using Outlook, I will use CDO to send emails. If I am exporting to Office, such as Excel, I export to the oldest version possible.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 02-11-2014, 07:40 PM
  2. Replies: 2
    Last Post: 01-08-2014, 08:52 AM
  3. Replies: 4
    Last Post: 05-30-2012, 07:00 AM
  4. Replies: 5
    Last Post: 01-18-2012, 12:46 PM
  5. Replies: 13
    Last Post: 05-23-2011, 07:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums