ScrollBar control crashing (1 Viewer)

pdanes

Registered User.
Local time
Yesterday, 22:27
Joined
Apr 12, 2011
Messages
279
I'm using a custom scrollbar control, from the Forms 2.0 Object Library.

It is an OLE class, Microsoft Forms 2.0, Forms.ScrollBar.1

It works most places, but one of my computers, trying to set the value .Max crashes with error 483, Object doesn't support his property of method. In a working machine, the class has 70 properties, in the one that crashes, the same class shows only 67 properties. And when I list them, none of them is named Max, in either machine. But the exact same code works on one and crashes on the other. I tried copying the FM20.DLL file, supposedly the source for the control, from the working machine to the crashing one, recompiled the app and no difference. Still crashes and still shows only 67 properties. Not just setting - any reference to the .Max property throws the error. Same with .Min.

It works on my primary dev machine and (so far) on all user's machines, but the one it crashes on is hooked to a live version of the database. I use it to troubleshoot user problems, and sometimes directly do data operations for users, when they want some one-off oddity that I can simply do in a fraction of the time it would take to explain it. It's kind of important that it also work, and since I don't know what's wrong, I'm worried that a user's machine may suddenly also decide to throw a fit.
 
are both machines using the same version and bitness of access and what are they?
 
ActiveX DLLs like fm20.dll cannot just be copied; they need to be registered.
Open a Command Prompt using Run as Administrator.
On my machine with 32-bit Office:
c:\windows\syswow64\regsvr32.exe C:\Program Files (x86)\Microsoft Office\Root\VFS\SystemX86\FM20.DLL

My version of fm20.dll is only 10 days old and the version is 16.0.19725.20058
Access is on version 2602 MEC.

There is also a chance this file has dependencies that also need to be installed. It gets complicated from there. The best way to install would be to run a setup program, such as Office Repair from Control Panel.

BTW, I do not get the crash. I guess is you have a mismatch of Office components and Office Repair is the next logical step.
 
in my case, I set it's Max (or Min) by:
Code:
Me.ScrollBarName.Object.Max = somevalue
 

Users who are viewing this thread

Back
Top Bottom