Solved

Msflxgrd.ocx + Access 2003

Posted on 2010-09-10
4
1,387 Views
Last Modified: 2013-11-18
We have an Access 2003 database which uses a number of different ActiveX controls including msflxgrd.ocx. When trying to access the form with the flex grid control we get the following message:
“The expression On Click you entered as the event property setting produced the following error: Object doesn’t support this property or method.”
I have unregistered and registered the control successfully several times. I have also unreferenced and referenced the control in Access 2003 several times. I can perform these actions with no problem and the ActiveX control shows up in the ‘References’ section of Access.  We have tried both versions of msflxgrd.ocx , version 6.0.81.69 and version 6.1.98.11.
The system in which we are developing the application on has no problems with the flex grid but when the application gets put on other systems it does not work. By put on other systems I mean an .mde is created on the developers system and then copied to other systems. We have two other systems out of about 50 that the flex grid works on and we are not sure why.
I know that mslfxgrd.ocx is not supported in Access 2003 and that’s not the answer I am looking for here. There’s no way that people are just no longer using msflexgrd.ocx with Access 2003, there has to be a work around. I am also aware that Microsoft Update KB960715 blocks the flex grid. This update is not installed on any of our systems.  Any suggestions you have with help, we need this to work.
0
Comment
Question by:kpurchase
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 33646012
<<By put on other systems I mean an .mde is created on the developers system and then copied to other systems. We have two other systems out of about 50 that the flex grid works on and we are not sure why. >>
In short, your problem is references, which are broken.  Whether a MDB or MDE, when you move to another system, all the reference needs to be exactly the same; same location, version, etc.  If they are not exactly identical, the reference breaks and the app doesn't work.
Most developers deploying custom controls use Sagekey scripts to avoid the issues.
<<I know that mslfxgrd.ocx is not supported in Access 2003 and that’s not the answer I am looking for here. There’s no way that people are just no longer using msflexgrd.ocx with Access 2003, there has to be a work around. >>
FWIW, I don't use any 3rd party controls with Access for this very reason.  Access's implementation of the IDispatch inteface is lacking and there are just too many controls that don't work properly with it.  That issue is actually a separate one from the one you have (a broken reference), but between the two, it makes using any type of third party control difficult.
As a suggestion, you can try placing the .ocx in the same directory as the DB and referencing/registering it there and see if that solves the issue.
Outside of that, the only sure fix is a runtime install with the Sage Key scripts.
JimD.
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 33646046
< By put on other systems I mean an .mde is created on the developers system and then copied to other systems.>

have you tried using a .mdb version on the machines that are raising the error?

with a .mdb, you can open the VBA window and inspect the References to find out if the reference is not MISSING.

0
 

Author Comment

by:kpurchase
ID: 33648707
Registering and referencing the ActiveX control in the same folder as the database worked! Nice job JDettman.
0
 

Author Closing Comment

by:kpurchase
ID: 33648714
Good answer.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now