+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 32 bits excel userform to Excel 2013 64 bits

  1. #1
    Forum Contributor
    Join Date
    05-07-2013
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    122

    Excel 2007 32 bits excel userform to Excel 2013 64 bits

    I have built an application on excel to add and modify data on access (I used microsoft office 2007 31 bits version) everything works great!
    I tried the application in another computer that has microsoft office 2013 64 bits version and it seems to have problem with the DAO reference!

    When I run the application it put me "error 429" " object creation threw activeX component not possible "
    The error comes on this line (the second line):
    Please Login or Register  to view this content.
    I heard maybe the reference of DAO is not supported in access 2013 application !

    And also when I use this code (because I open a pdf file fril the userform so I use an API)
    Please Login or Register  to view this content.
    The application tells me "The code in this project must be updated for use on 64-bit systems" and put something named Ptr (I don't know at all what this is!!)

    Can anyone help me?
    Thank you !!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Excel 2007 32 bits excel userform to Excel 2013 64 bits

    Hello sebastienkanj,

    The DAO library is 32 bit and is not supported on 64 bit Windows platforms. Here is the Shell Execute code with the needed changes.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    05-07-2013
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Excel 2007 32 bits excel userform to Excel 2013 64 bits

    Thank you for the shell execute!
    What about the DAO reference? is there anyway to check another similar reference that works with 64 bits version without changing the vba code?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Excel 2007 32 bits excel userform to Excel 2013 64 bits

    Hello sebastienkanj,

    From what I have read, Microsoft has not released a 64 bit version of the DAO nor does it plan to. Not being an Access expert, I don't know of any workarounds for this issue. You may want to post your question to an Access forum. You will probably get better and quicker answers.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Excel 2007 32 bits excel userform to Excel 2013 64 bits

    The "Microsoft Office 15.0 Access Database Engine Objects" library is the DAO library for Office 2013 and is 64bit compatible. DAO 3.6 is not though.
    Everyone who confuses correlation and causation ends up dead.

  6. #6
    Forum Contributor
    Join Date
    05-07-2013
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Excel 2007 32 bits excel userform to Excel 2013 64 bits

    I tried to check this reference but it still give me the same error!! Do i have to check it on excel or on access? Or both?

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Excel 2007 32 bits excel userform to Excel 2013 64 bits

    In Excel. I have tested it with both .accdb and .mdb files and it ran without error.

  8. #8
    Forum Contributor
    Join Date
    05-07-2013
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Excel 2007 32 bits excel userform to Excel 2013 64 bits

    It's working! I unchecked the 3.6 object library reference and checked the 15.0 Access Database Engine Objects ! I had the ADO checked I unchecked it too and it works!! thank you very much for your help!

  9. #9
    Forum Contributor
    Join Date
    05-07-2013
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Excel 2007 32 bits excel userform to Excel 2013 64 bits

    Quote Originally Posted by Leith Ross View Post
    Hello sebastienkanj,

    The DAO library is 32 bit and is not supported on 64 bit Windows platforms. Here is the Shell Execute code with the needed changes.
    Please Login or Register  to view this content.
    When I put this in the head of the module they told me that a "sub" or "function" is missing!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1