473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems with MSCOMCT2.OCX ActiveX control

LBryant
18
Our team is using a project tracking application built in Access 2000 and upgraded to 2003. We have MS Office 2003 installed on all computers.

On several forms, we're using the Format() function to display dates as "mmm dd, yyyy". The Format function is supported by MSCOMCT@.OCX according to the object browser.

This function causes an error on one of the workstations. Originally, the references dialog showed this control was missing. We copied the file to the system32 folder and registered it. The control is not "missing" any more, but the format function is still causing an error on that one machine.

Does anyone have an idea how to fix this?

Leon
Apr 10 '08 #1
4 2763
FishVal
2,653 Expert 2GB
Hi, Leon.
  • What is mscomct2.ocx is all about? Did you mean mscomctl.ocx ?
  • To the best of my knowledge there is a pretty nice Format() function - member of VBA library. Why not to use it?
  • Are you sure that Format() function you are using is actually from mscomct2.ocx and not from VBA library?

Regards,
Fish
Apr 10 '08 #2
LBryant
18
I think you are right. The Object Browser shows it's part of the VBA library.

Here's what I'm using:

Expand|Select|Wrap|Line Numbers
  1. txtStartDate = Format(strStartdate, "mmm dd" & ", " & "yyyy")
This displays Feb 10, 2008 in the text field. If that's the case, and everything else works, why would the Format function cause an error on only one machine?
Apr 10 '08 #3
FishVal
2,653 Expert 2GB
What error does it cause?
Are you sure there is no missing library references when running on that machine?
Apr 10 '08 #4
LBryant
18
Thanks FishVal. Here's what I discovered. In Access there were references pointing to 2 different versions of the Microsoft Common Controls -- version 5 and 6. Once I removed the reference to version 5, the Function() control worked without error.

You were correct that the Format function is supported in the VBA library. What I don't understand is why the errant reference caused that particular error.

I also can't understand why it only caused an error on one of our workstations, which are confugured identically.

Oh well, so many questions, so little time. Hope the weather's nice in Israel.
Apr 10 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: BestNews | last post by:
OS: XP ..Net= framework = 1.0.3705 VS.Net IDE = 7.0.9466 1. I used an ActiveX control in C# client Application. After executing Aximp of ActiveX control. I derived a class from the AxHost.
0
by: Gary | last post by:
sorry for not cross-posting originally (originally posted in the components subgroup) I seem to have run into two documented bugs whose workarounds are incompatible. What I have is an OCX...
1
by: None | last post by:
Hello In order to host and use an ActiveX control (non-GUI) in a WTL app, I followed the following steps: 1. During project creation, the ActiveX Hosting option is enabled. 2. In the dialog...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
1
by: Nayak | last post by:
On my web page, I have an activex control. Is it possible for the activex control to access some xml files and database on the WebServer ? If yes, How to do that ? If no, is there any method to do...
1
by: John Olbert | last post by:
We are trying to use legacy Visual Basic 6 ActiveX controls in C# projects under Vs2005. The importing into Vs2005 Tools of the registered Ocx works fine. We can place an instance of the control on...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
4
by: apartain | last post by:
I placed a database on the server and all of the other users are receiving the error message: Your Microsoft Access database or project contains a missing or broken reference to the file...
3
by: JesseVogel | last post by:
We've just installed Accessd 2007 that is running a database developed in 2003. The date picker isn't working - we have no pop up calendars, just empty white spaces. I need to figure out how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.