A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Is there a way to get a list of the fields in a table into Word



 
 
Thread Tools Display Modes
  #1  
Old September 29th, 2008, 05:24 PM posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.access.tablesdbdesign
Steve[_57_]
external usenet poster
 
Posts: 598
Default Is there a way to get a list of the fields in a table into Word

How can I get a list of the fields in an Access table into Word? I am
working on a very misdesigned database where one table has over 100 fields
and several others have over 50 fields. I am writing a report in Word and
want to include the list of fields in certain tables. I am aware of the
documenter; is there a way to get a documenter report into Word?

Thanks!

Steve


  #2  
Old September 29th, 2008, 05:35 PM posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.access.tablesdbdesign
JvC
external usenet poster
 
Posts: 14
Default Is there a way to get a list of the fields in a table into Word

Run the Documenter.
Go To Tools, Office Links, and select Publish It With Microsoft Word.

John

Steve laid this down on his screen :
How can I get a list of the fields in an Access table into Word? I am working
on a very misdesigned database where one table has over 100 fields and
several others have over 50 fields. I am writing a report in Word and want to
include the list of fields in certain tables. I am aware of the documenter;
is there a way to get a documenter report into Word?

Thanks!

Steve



  #3  
Old September 29th, 2008, 07:20 PM posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.access.tablesdbdesign
Steve[_57_]
external usenet poster
 
Posts: 598
Default Is there a way to get a list of the fields in a table into Word

John,

Thanks for the quick response! The documenter gives me field name, suze and
type so I get three columns in Word. I could clean it up so I only have the
field name but that would be a bit tedious. Any idea how to just get the
field names?

Thanks!

Steve


"JvC" wrote in message
...
Run the Documenter.
Go To Tools, Office Links, and select Publish It With Microsoft Word.

John

Steve laid this down on his screen :
How can I get a list of the fields in an Access table into Word? I am
working on a very misdesigned database where one table has over 100
fields and several others have over 50 fields. I am writing a report in
Word and want to include the list of fields in certain tables. I am aware
of the documenter; is there a way to get a documenter report into Word?

Thanks!

Steve





  #4  
Old September 29th, 2008, 08:23 PM posted to comp.databases.ms-access,microsoft.public.access,microsoft.public.access.tablesdbdesign
JvC
external usenet poster
 
Posts: 14
Default Is there a way to get a list of the fields in a table into Word

Go to Options in the documenter, and select only Field Names, Data
Types and Sizes. That's about the minimum.

Steve has brought this to us :
John,

Thanks for the quick response! The documenter gives me field name, suze and
type so I get three columns in Word. I could clean it up so I only have the
field name but that would be a bit tedious. Any idea how to just get the
field names?

Thanks!

Steve


"JvC" wrote in message
...
Run the Documenter.
Go To Tools, Office Links, and select Publish It With Microsoft Word.

John

Steve laid this down on his screen :
How can I get a list of the fields in an Access table into Word? I am
working on a very misdesigned database where one table has over 100 fields
and several others have over 50 fields. I am writing a report in Word and
want to include the list of fields in certain tables. I am aware of the
documenter; is there a way to get a documenter report into Word?

Thanks!

Steve





  #5  
Old September 29th, 2008, 09:15 PM posted to microsoft.public.access.tablesdbdesign,microsoft.public.access
Fred
external usenet poster
 
Posts: 1,451
Default Is there a way to get a list of the fields in a table into Wor

You could do some fast cleanup in Word using global deletes to remove spaces,
tabs, repetitive used field type words (e.g. "text") and repetitively used
(e.g. default) max field size numbers.
  #6  
Old September 29th, 2008, 09:21 PM posted to microsoft.public.access,microsoft.public.access.tablesdbdesign
Paul Shapiro
external usenet poster
 
Posts: 635
Default Is there a way to get a list of the fields in a table into Word

You could write your own code to loop through the db's tabledefs, and for
each table loop through the fields. Something like:

For each tdf in dbcurrent().tableDefs
debug.print tdf.name
strOutput = strOutput & vbCrLf & tdf.name
For each fld in tdb.fields
debug.print fld.name
strOutput = strOutput & vbCrLf & vbTab & tdf.name
Next fld
Next tdf
'Write strOutput to a text file.

I've written code to do formatted output directly into Word, but if all you
want is the table and field names, you could write it out to a text file.

"Steve" wrote in message
m...
John,

Thanks for the quick response! The documenter gives me field name, suze
and type so I get three columns in Word. I could clean it up so I only
have the field name but that would be a bit tedious. Any idea how to just
get the field names?

Thanks!

Steve


"JvC" wrote in message
...
Run the Documenter.
Go To Tools, Office Links, and select Publish It With Microsoft Word.

John

Steve laid this down on his screen :
How can I get a list of the fields in an Access table into Word? I am
working on a very misdesigned database where one table has over 100
fields and several others have over 50 fields. I am writing a report in
Word and want to include the list of fields in certain tables. I am
aware of the documenter; is there a way to get a documenter report into
Word?


  #7  
Old September 29th, 2008, 09:38 PM posted to microsoft.public.access.tablesdbdesign,microsoft.public.access
Steve[_57_]
external usenet poster
 
Posts: 598
Default Is there a way to get a list of the fields in a table into Wor

Thanks, Fred! Worked great.

Steve


"Fred" wrote in message
...
You could do some fast cleanup in Word using global deletes to remove
spaces,
tabs, repetitive used field type words (e.g. "text") and repetitively used
(e.g. default) max field size numbers.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.