Access 2007 VBA - TWAIN Message Problem

This relates to the TWAIN driver/.ds for a Plustek portable scanner. Calling the driver using VBA in Access 2007 with the scanner not connected or with no paper in the scanner normally causes the driver/.ds file to generate an appropriate error message (they use CreateWindowEx to generate the message). When the scanner is selected calling a function directly in the Access 2007 VBA editor, the messages display correctly. When this same function is called using a command button on an Access 2007 form, the message is corrupted - an area in the center of the message window text is blank and the message buttons sometimes do not appear. Plustek have tried a test example app using the Chinese version of Access 2007 and don't see the problem. Any suggestions? By  the way, I have tested this Access 2007 app on XP, Vista and W7 - same problem on all platforms. This code works perfectly in Access 2003 on all platforms.
katie999Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
katie999Connect With a Mentor Author Commented:
I just received word and a new twain.ds file from Plustek. They reopened the case and found the problem and it is now resolved. I believe they will now include the corrected file in their scanner driver downloads.
0
 
Simon BallCommented:
are they using any specific references in VBA that might be different versions to yours?
0
 
katie999Author Commented:
The only references used in my version are the four standard ones loaded on Access install. vbe6.dll is up to date (6.5.10.40). Their VB for Applications may be vbe6int.dll, as the screenshot of their test showed Chinese characters in the Access main window bars.
0
 
Simon BallCommented:
hmmm, if Ac2003 works on all platforms, and Ac2007 does not, its something about the dll's from one version of access to another then...
0
 
Simon BallCommented:
excellent!
0
All Courses

From novice to tech pro — start learning today.