Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing Controls 1

Status
Not open for further replies.

beckwiga

Programmer
Mar 30, 2005
70
I recently had to format my HD and start over from scratch. I have since been trying to get everything back up and working on my machine.

Today I installed .NET and Access 2003, and after doing this, I tried to open a VBA project I had been working on. I get the following error:


Under my referneces, I have some stuff missing:


I don't have an MSChart.ocx on my machine... I don't know where I would have gotten it or where in my project it is being used. Can I tell? I have an mschrt20.ocx, and this registers fine, but my project still looks for mschart.ocx. Does anyone have this or where can i find it? I tried to use that MS upgrade util to upgrade the control in my project, but it says I need VB 6. I don't have VB 6 or earlier. If I had the mschart.ocx before, maybe I got it from an old version of Office??? My mscomct2.ocx controls are missing too. Anyone got any idea? These controls are all new to me. Thanks in advance.
 
Best I can find is that MSChart.ocx is a Visual Basic 6 control


Replacing MSCOMCT2.OCX:


I found the d=following at:


SOLUTION:

In order to fix this problem, you'll need to set up and register the library file.

The easiest way to do that is to download the following file that will install and register most of the Library Files used by Ascentive's products (if you still see the error, try the manual instructions below).
Please use the following URL to download a 5.66 MB (5,935,720 bytes) Ascentive Library Installer.

Right click on the above link and select "Save target as..."



--------------------------------------------------------------------------------


Alternatively, you may download just the file you are missing and manually register it yourself. Here's how to do it:
Download MSCOMCT2.OCX (right click the text on the left and save to your Desktop).


Back up your current copy of MSCOMCT2.OCX and copy the new version to the same file location. This file should be located in the WINDOWS\SYSTEM directory on your C: drive (for Windows NT and 2000: \WINNT\system32).


Using your mouse, click on the "Start" button and then click on "Run".


According to your Operating System, type the following command to register this library file:

Windows 95, 98, or Me:
regsvr32 \windows\system\MSCOMCT2.OCX

Windows NT or 2000:
regsvr32 \WINNT\system32\MSCOMCT2.OCX

Windows XP:
regsvr32 \windows\system32\MSCOMCT2.OCX


You should see a message saying "DllRegisterServer ... succeeded"

If you are getting an error telling you that the file is missing, then you are not typing the command in correctly. You will need to type it in *exactly* as as shown above for your operating system.

* Please note that there is a SPACE after "regsvr32" and before the rest of the command.

You should probably copy and paste the command so that you are unable to mistype it.

Download MSCOMCT2.OCX now (right-click on the link and select "Save Target as...").
 
Thanks, Donald. I think I've got everything working correctly now. I registered the COMCT2.OCX, but the MSChart.ocx was still giving me problems. Under my References, I just unchecked the MISSING: Chart.ocx and my project seems to work just fine. Not sure if anything in my project was really using it. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top