Solved

Extracting Access column names to Excel

Posted on 2004-08-13
4
362 Views
Last Modified: 2012-06-27

Is there a way by which I can copy the names of columns from Access into an Excel file. What i basically need to do is review several columns in several tables in one DB. If I could get a list of all these columns into Excel it wouldreally make things easy for me.

Is there a quick way to do this?

Thanks,
KM
0
Comment
Question by:KalluMama
[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
4 Comments
 
LVL 1

Accepted Solution

by:
adsmk2003 earned 500 total points
ID: 11793993
yes, you could create a copy of the table with the columns (within access) and then run a delete query on that table to empty it.  Then you could export that table to an excel spreadsheet....
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 11794012
0
 
LVL 5

Expert Comment

by:Emanon_Consulting
ID: 11794115
If you're looking for a quick and dirty way to get the names of the fields in excel then what I might suggest is...
Create a query for the table(s) you want in excel like this

SELECT tblValue.ValueID, tblValue.FName, tblValue.LName, tblValue.DollarValue
FROM tblValue
WHERE (((tblValue.ValueID) Is Null));

In the ID field for the table all you need to do is place Is Null in the Criteria.  This will display all results where there is NO DATA in the tables primary key field meaning no records/data will be displayed.

Then just use the Office Links to Analyze it with MS Excel.  This is found under Tools then Office Links.


Hope that works for you
Cheers
Michael
0
 
LVL 4

Expert Comment

by:Colonel32
ID: 11794652
This will drop all the tables and all their fields into your debug window. You can simply copy that into any other medium you wish to - Excel included :)

For Each tbl In CurrentDb.TableDefs

    Debug.Print tbl.Name
    Debug.Print "---------"
    For Each fld In tbl.Fields
        Debug.Print fld.Name
    Next fld
    Debug.Print vbLf
   
Next tbl
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

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