473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Creating a code book from Access 2003

Hi,

A client asked for a code book (all fields, descriptions, tables, etc.) from
our Access database. Has anyone had to do this? It seems to me there must
be a way to extract all this information from Access.

Any assistance would be wonderful.

Thanks.

Jun 27 '08 #1
7 3622
On Tue, 06 May 2008 16:13:04 GMT, mlthomas007 wrote:
Hi,

A client asked for a code book (all fields, descriptions, tables, etc.) from
our Access database. Has anyone had to do this? It seems to me there must
be a way to extract all this information from Access.

Any assistance would be wonderful.

Thanks.
is this what you want?

Tools + Analyze + Documenter
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jun 27 '08 #2
A third-party tool, Total Access Analyzer, from FMS, Inc.
(htttp://www.fmsinc.com) will provide more information than you or your
client is likely ever to want to go through. You can find a free
documentation tool at the Access Junkie site,
http://www.accessmvp.com/JConrad/accessjunkie.html, specifically at
http://www.accessmvp.com/JConrad/acc.../csdtools.html. There are
others, but these are two that provide extensive documentation.

Larry Linson
Microsoft Office Access MVP
"mlthomas007" <u43434@uwewrote in message news:83c0e43c9edd0@uwe...
Hi,

A client asked for a code book (all fields, descriptions, tables, etc.)
from
our Access database. Has anyone had to do this? It seems to me there
must
be a way to extract all this information from Access.

Any assistance would be wonderful.

Thanks.

Jun 27 '08 #3
Thanks I will check it out.

Larry Linson wrote:
>A third-party tool, Total Access Analyzer, from FMS, Inc.
(htttp://www.fmsinc.com) will provide more information than you or your
client is likely ever to want to go through. You can find a free
documentation tool at the Access Junkie site,
http://www.accessmvp.com/JConrad/accessjunkie.html, specifically at
http://www.accessmvp.com/JConrad/acc.../csdtools.html. There are
others, but these are two that provide extensive documentation.

Larry Linson
Microsoft Office Access MVP
>Hi,
[quoted text clipped - 7 lines]
>>
Thanks.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200805/1

Jun 27 '08 #4
Hi,

We need to pull the tables, fields, etc with descriptions and vaules.

Thanks

fredg wrote:
>Hi,
[quoted text clipped - 5 lines]
>>
Thanks.

is this what you want?

Tools + Analyze + Documenter
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200805/1

Jun 27 '08 #5
On May 6, 11:13*am, "mlthomas007" <u43434@uwewrote:
Hi,

A client asked for a code book (all fields, descriptions, tables, etc.) from
our Access database. *Has anyone had to do this? *It seems to me theremust
be a way to extract all this information from Access.
I use a report called tblFields with the following code. The report
groups on table names and shows the field descriptions. Sometimes
this is eough for the client, sometimes I send it into Word and
explain a little more what's going on. I can copy the report to any
application for a quick look of what's what.

Private Sub Report_Open(Cancel As Integer)
' Arvin Meyer 12/7/1995
' Modified 3/17/2000 Tim Mills-Groninger
' Finds and lists all fields in all tables

On Error Resume Next
Me.CreateNewTableWithChecking = Null 'check for tblFields, make if not
present

Dim db As Database
Dim rst As Recordset
Dim tdf As TableDef
Dim fld As Field
Dim intI As Integer
Dim intJ As Integer
Dim strDesc As String

Set db = CurrentDb()
' Clean out the "working" table tblFields
db.Execute "Delete * From tblFields"
' Open the table for data entry
Set rst = db.OpenRecordset("tblFields", DB_OPEN_TABLE,
DB_APPENDONLY)
' Outer loop for tables
For intI = 0 To db.TableDefs.Count - 1
Set tdf = db.TableDefs(intI)
' Skip system tables
If Left(tdf.Name, 4) <"MSys" Then
' Now loop through fields
For intJ = 0 To tdf.Fields.Count - 1
Set fld = tdf.Fields(intJ)
rst.AddNew
rst!TableName = tdf.Name
rst!FieldName = fld.Name
rst!FieldNumber = fld.OrdinalPosition
Select Case fld.Type
Case dbDate
rst!DataType = "Date/Time"
Case dbText
rst!DataType = "Text"
Case dbMemo
rst!DataType = "Memo"
'Case dbHyperlinkField
' rst!DataType = "Hyperlink"
Case dbBoolean
rst!DataType = "Yes/No"
Case dbInteger
rst!DataType = "Integer"
Case dbLong
rst!DataType = "Long Integer"
Case dbCurrency
rst!DataType = "Currency"
Case dbSingle
rst!DataType = "Single"
Case dbDouble
rst!DataType = "Double"
Case dbByte
rst!DataType = "Byte"
Case dbLongBinary
rst!DataType = "OLE Field"
Case Else
rst!DataType = "Unknown"
End Select
strDesc = ""
' The Resume Next will avoid an error if there is no
Description
strDesc = fld.Properties("Description")
rst!Description = IIf(IsNull(fld.Properties("Description")),
"", strDesc)
rst.Update
Next intJ
End If
Next intI
rst.Close
End Sub

Function CreateNewTableWithChecking()
' check for table fields, and if not present, make one
' Helen Feddema - the Access Archon, modified from her column
' in Woody's Access Watch Vol2 No11

On Error GoTo ErrorHandler

Dim dbs As DAO.Database
Dim strTable As String
Dim strSQL As String
Dim tdf As TableDef
Dim lngResult As Long

Set dbs = CurrentDb
strTable = "tblFields"
Set tdf = dbs.TableDefs(strTable)
'dbs.TableDefs.Delete strTable

CreateNewTable: 'Runs only if "tblFields" does not exist

strSQL = "CREATE TABLE " & strTable & "(TableName TEXT (50),
FieldName TEXT (50), "
strSQL = strSQL + " FieldNumber INTEGER, DataType TEXT (50),
DefaultValue TEXT (50)"
strSQL = strSQL + " , Description TEXT (150), Constraint myCon
Primary Key (TableName, FieldName));"

dbs.Execute strSQL

ErrorHandlerExit:

Exit Function

ErrorHandler:

Select Case Err.Number
Case 3265
GoTo CreateNewTable
Case Else
'MsgBox "Error No: " & Err.Number & "; Description: " &
Err.Description
Resume ErrorHandlerExit
End Select

End Function
Jun 27 '08 #6
Hi,

Is there a way to get the Values as well?

Thanks.

Mlthomas007
Larry Linson wrote:
>A third-party tool, Total Access Analyzer, from FMS, Inc.
(htttp://www.fmsinc.com) will provide more information than you or your
client is likely ever to want to go through. You can find a free
documentation tool at the Access Junkie site,
http://www.accessmvp.com/JConrad/accessjunkie.html, specifically at
http://www.accessmvp.com/JConrad/acc.../csdtools.html. There are
others, but these are two that provide extensive documentation.

Larry Linson
Microsoft Office Access MVP
>Hi,
[quoted text clipped - 7 lines]
>>
Thanks.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200805/1

Jun 27 '08 #7
"mlthomas007 via AccessMonster.com" <u43434@uwewrote in message
news:83d981898462f@uwe...
Is there a way to get the Values as well?
Multiple methods are provided, directly in Access, to display, print, and/or
export the data -- no special tools are required. Assuming this is a
production application, the data will be transitory, and that data dump will
be accurate only until the next deletion, update, or addition.

Larry Linson
Microsoft Office Access MVP

Jun 27 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: post400 | last post by:
Hi, there is another famous book 'Writing solid code' but does it apply to Python ? Or it's usable only by Microsoft C programmers ? The author seems to be an ex-Microsoft guy ! Thanks ,...
5
by: Phil | last post by:
I am a novice user with Access 2000. I have a five table database that works, but know it can be designed much better. I want to learn much more. I have no experience coding, no exposure to VBA...
1
by: Top Spin | last post by:
I have been fooling around with Access on and off for a couple of years -- mostly simple applications with only a few tables and simple relationships. I know the basics for the most part and I have...
6
by: Null Reference | last post by:
Anybody here who can explain or point me to a link ? I wish to create a blank MS Access DB file programmatically using C# . Thanks, nfs
4
by: dw | last post by:
Hi, all. I know you've had this question only a million times before, but here it goes: I have access to Books 24X7, the online computer book resource. Do you recommend any books for beginners with...
7
by: Michael Williams | last post by:
Hi All, I'm looking for a quality Python XML implementation. All of the DOM and SAX implementations I've come across so far are rather convoluted. Are there any quality implementations that...
2
by: AA | last post by:
Hi! I am a comeback database developer using MS Access (last time was 1998). I kindly ask for your recommendation of a good book(s) that can be used as Jump starter, and reference. (more than...
3
by: ITrishGuru | last post by:
Hi all, For my IT final year project I have to access mail items in outlook 2003 and parse them. I have read and researched on the net and library for about a week now. I have to do the project...
8
by: Tim | last post by:
I have Access 2003 and would like to learn more abot it. I don't find it very intuitive like most of MS other products. I feel where I'm going wrong is the philosophy of databases and was hoping...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.