Solved

E_FAIL when connecting to Access

Posted on 2002-04-29
10
190 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Printing problem 2 101
Correct Component for Shopping Cart. 2 112
JAudiorecorder record freezing the app 29 74
Delphi: barcode reading on android platform 1 51
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

792 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