We help IT Professionals succeed at work.

Ribbon callback error with Access runtime 2010 and 64 bits windows

pdsavard
pdsavard asked
on
Hello,

I have an Access 2007 application with a SQL database. The application is compiled in accde.
I load a custom ribbon (XML file). In the XML file, I use a "loadImage" callback:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" loadImage="Ribbon_loadImage">

Open in new window

The callback function is in a module:
Sub Ribbon_loadImage(imageId As String, ByRef image)

Open in new window

Users run this application with the Access 2010 32 bits runtime. All is correct except for users wich have windows 7 64 bits. They have an error "cannot run the macro or callback function 'Ribbon_loadImage'. Make sure the macro or function exists and takes the correct parameters".
The consequence is that the menus in my custom ribbon contain nothing. If I remove the "loadImage" callback from the XML file, the menus in my custom ribbon are correct (but without image).

Do you have any idea on this problem with windows 7 64 bits users?

Thank you.

Comment
Watch Question

Author

Commented:
I can't install 64 bits version of Access 2010 runtime for 2 reasons:
- users have Office 2010 32 bits installed on their PC (Word, Excel, Outlook) and Office don't allow to install 32 bits ans 64 bits concurrency
- my accde comes from Access 2007 which is 32 bits, then I think the 64 bits runtime can't open a 32 bits accde.