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
333 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

770 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