Solved

ActiveX ODBC Connection Control Works in VB (and IE) but not in FOXPRO! The same control works in one but not in other! (gah)

Posted on 2004-08-13
6
340 Views
Last Modified: 2013-12-25
My ActiveX Control connects to an ODBC connection (made through the control panel)

It works in VB and works in IE, (and any other activex container..)

But when i put it into VisualFoxPro6 (where it was intended to be put), it says it can't create connection or some weird error. I'll post the exact error message soon.

Thoughts?

mycode is:
rsConn.Open "termsconn" <-- that's the name of the connection. That's where its having the error.

-Michael
0
Comment
Question by:Anderson_Enterprises
  • 3
  • 2
6 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 11795104
Please post more of your code.  It seems you are trying to open a recordset with a connection string.  Is rsConn a recordset or connection object?

Leon
0
 

Author Comment

by:Anderson_Enterprises
ID: 11795752
Because you are the only guy that answered, i'm going to award you the points...

i've found the answer.

Apparently when (in foxpro) you type:
 USE Calendar

It opens a connection to the Calendar Database. (That's what I want!)

BUT..

The ODBC driver CANNOT access Calendar when its 'in use' even when you don't use it exclusive.

The solution was to Close all instances of the calendar database. Apparently ActiveX/FoxPro/VisualBasic don't like to share connections to databases. EVEN WHEN they advertise that ability.

-Michael Smyers
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 11795838
Michael,

Thanks, but no thanks.  If you answered your own question, you should post to the Community Support area and ask for the question to be closed and the points refunded.  I would much rather have that happen then get a C grade.

Leon
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Comment

by:Anderson_Enterprises
ID: 11796168
Hm, How do I go about fixing this for you? I hadn't thought about the negative connotations associated with a C..

I'll see what I can do!

-Michael Smyers
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 11796309
I already made the posts.  A mod should be coming along any time now.

Leon
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 11797458
Unaccepted per request http:Q_21093220.html

Closed, 500 points refunded.

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

830 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