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
351 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

738 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