Solved

Msflxgrd.ocx + Access 2003

Posted on 2010-09-10
4
1,381 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

746 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

13 Experts available now in Live!

Get 1:1 Help Now