Print a list of table Field names (1 Viewer)

access2010

Registered User.
Local time
Today, 11:09
Joined
Dec 26, 2009
Messages
1,098
We are preparing to upgrade some of our MsAccess 2003 Databases and would like to review the field information being used in 2 fields.

Could I please receive a suggestion on how to print two objects within the table
Field Names
Data Types

Thank you. Crystal
 

Attachments

Have you tried the Database Documenter?

Database Tools > Database Documenter

Click on the Options button to specify which attributes you want to include in the report.
 
You can "roll your own" as shown in June7's two links, or you can use the database documenter as noted by theDBguy. Easiest would be the built-in documenter. Nothing to write, just click to select options. Personally I would do the documenter unless there is some outside issue that is driving your attention elsewhere.
 
TMK, the documenter only goes to printer. So if you don't want to chew up paper, roll your own.

Or maybe first set default printer to MS PrintToPDF and maybe it will output to PDF.
 
Have you tried the Database Documenter?

Database Tools > Database Documenter

Click on the Options button to specify which attributes you want to include in the report.
Yes, TheDBguy. We did try your suggestion, but we received more information than we wanted.
 
You can "roll your own" as shown in June7's two links, or you can use the database documenter as noted by theDBguy. Easiest would be the built-in documenter. Nothing to write, just click to select options. Personally I would do the documenter unless there is some outside issue that is driving your attention elsewhere.
Thanks Doc Man for your suggestion, but all we want to see are two fields.
 
Yes, TheDBguy. We did try your suggestion, but we received more information than we wanted.
That's even after you selected only the attributes you wanted in the the report from the Options dialog window?
 
Documenter doesn't allow that level of selection. Get all fields. But can limit to Name, DataType, Size so maybe not so bad to pull all fields.

I just tested Documenter. I get a report so not direct to printer.

Even with limited output, a 6-field table produced 3-page report with a lot of details I didn't want. Oh, that included Properties. Change selection to "Names, DataTypes, Sizes" and the output is one short page listing all fields. Actually rather nice.

Should be able to open mdb in current Access version. I am using 2020.

Seems like the last time I tried this was with Access 2007 and went straight to printer and no selection options so used a ton of paper.
 
Last edited:
Use the documenter which updates a table in the folder C:\Users\[Your Profile]\AppData\Roaming\Microsoft\Access\ACWZUSR12.ACCDU Since you have an MDB file, the extension will be different. You can search for file name by displaying hidden files in your Windows Explorer. You can link to the doc_tblObjects and create a query like:
Code:
SELECT doc_tblObjects.Name AS TableName, doc_tblObjects_1.Name AS FieldName,
doc_tblObjects_1.Extra2 AS FieldType, doc_tblObjects_1.Extra3 AS FieldSize
FROM doc_tblObjects AS doc_tblObjects_1
INNER JOIN doc_tblObjects ON doc_tblObjects_1.ParentID = doc_tblObjects.ID
WHERE doc_tblObjects_1.TypeID=11;
This will provide a datasheet like:
1734914769575.png
 
I tried setting link to the accdu file but External Data Wizard does not show this file extension so the file does not show. I did confirm the file exists.
I used IN with the SQL and saved this query object.
Code:
SELECT * FROM doc_tblObjects IN 'C:\Users\Administrator\AppData\Roaming\Microsoft\Access\ACWZUSR12.ACCDU'
Then built another query using that as source so I could do the self-join and alias field names and filter.
Code:
SELECT Props_1.Name AS TableName, Props.Name AS FieldName, Props.Extra2 AS DataType, Props.Extra3 AS [Size]
FROM Props AS Props_1 INNER JOIN Props ON Props_1.ID = Props.ParentID WHERE Props.TypeID=11;

I suppose some VBA could set the table link.

Tested with a single-user non-split db that has local tables as well as linked SQLServer. Works on both.
I expect filepath will be different for each user of multi-user split db.
 
Last edited:
When searching for the ACCDU file just enter *.* in the file box and all files will be displayed.
 
Exactly which "file box" do you mean? I am navigating from External Data Wizard and I don't see where I can enter *.*.

However, I tried Wizard again and now I see the file. Odd I didn't see it before. I had already run the Documenter.

Either way, same output.
 
I've used Adams code here for several of my projects:-


Turns out he is useful sometimes!!!
 
Exactly which "file box" do you mean? I am navigating from External Data Wizard and I don't see where I can enter *.*.

However, I tried Wizard again and now I see the file. Odd I didn't see it before. I had already run the Documenter.

Either way, same output.
Apparently you found the file but for the record:
1735015592826.png
 
I tried that and it did not work, even got error message so figured that was not the box.
I have closed and reopened database. Trying to link table and again it does not show. And again I confirmed in Windows Explorer the file is there. Oh wait, have to click Open button then it shows and can choose. Click Open again.
Got it.
 
#June7, I assume you got the desired results. If not, please provide more feedback regarding your results and desired results.
 

Users who are viewing this thread

Back
Top Bottom