Solved

Extracting Access column names to Excel

Posted on 2004-08-13
4
363 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
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 …

734 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