Solved

E_FAIL when connecting to Access

Posted on 2002-04-29
10
191 Views
Last Modified: 2010-04-04
Hi guys,
I am getting an E_FAIL error and I have no idea what it means.  I am connecting to an Access database which has queries which query a Foxpro Database.  Any ideas?

Cheers
0
Comment
Question by:gtbikeuk
10 Comments
 

Author Comment

by:gtbikeuk
ID: 6978374
I've just increased the points as I am desperate to solve this quickly
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6978559
how do you connect?
a bit more info, please
0
 

Author Comment

by:gtbikeuk
ID: 6978744
I'm connecting via ADO
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:gtbikeuk
ID: 6978782
I'm connecting via ADO
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 6979243
more information please, e.g. what's your connection string like?

also, how do you query the Foxpro DB from Access? Can access find the Foxpro DB in the first place?
0
 
LVL 17

Expert Comment

by:inthe
ID: 6979627
Put something like this in your connection (use try except block) and hopefully it will tell you more about why its failing.

ShowMessage(SysErrorMessage(GetLastError));
0
 
LVL 4

Expert Comment

by:Greg Rowland
ID: 6981108
Record a macro in Excel or Word,
Connect to the database using the built in dialogs,
Save the macro.
In Excel use Tools, Macros, Visual Basic Editor to examine the connection string it generates.

HTH,

Greg
0
 

Accepted Solution

by:
gtbikeuk earned 0 total points
ID: 6981179
Thanks guys, solved the problem...using ADOQuerys instead of doing it via access...works fine.  Who do you think I should award the points to?
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6981392
no one, or all in splitted parts,
but, i vote for no one

ask at community support,
for taking this q into paq
and refunding your points

meikl ;-)
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9004363
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ/ Refund

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 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