Solved

Can I know the name of a table inside an Access (MDB) or Excel (XLS) file?

Posted on 2004-04-02
2
141 Views
Last Modified: 2010-04-05
Hi! I have an app which uses an adoDataSet to connect to an Excel or an Access file (choosen by user), but I wanna now if there's a way to retrieve the sheet's (XLS) name, or the table's name (MDB).
Tried to do it through property CommandText, making a reference to it as an array, but obviously, it was wrong.

I'll appreciate any help =)
Alex
0
Comment
Question by:atirado
2 Comments
 
LVL 6

Accepted Solution

by:
Amir Azhdari earned 125 total points
ID: 10748982
hi ,
if i don't misunderstood , you wanna get tables name in a MDB file if so , use an adoconnection , set the 'adoconnection.connectionstring' and set your adodataset's connection to the adoconnection , place a memo and then try this code :

adoconnection1.GetTableNames(memo1.Lines,False);

let me know if you have any prob.

Regards
Azhdari
0
 

Author Comment

by:atirado
ID: 10753556
Thanks a lot, Azhdari! It worked out just perfectly! =)

Greetings from MX (H)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
code issue 8 85
Using idhttp to login to instagram 2 65
Multiple image collision 13 45
creating threads in delphi 1 54
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now