There is no way to save as text the table objects. The best you
can do is use the SaveAsText command with option 6 to save a
binary copy of the database with it's table objects, minus
all the stuff exported by the other options.
This is the say MS Source Safe handles the database: every
thing else as text, tables and data in a single binary object.
Access 2003 has extended XML methods, and you may be able
to find code to document the tables and data as XML.
(david)
"planetthoughtful" <planetthoughtful@gmail.com> wrote in message
news:1146401880.388514.105830@i40g2000cwc.googlegr oups.com...[color=blue]
> Hi Allen,
>
> Thanks for the answer!
>
> Here's some code, in case someone else looks for the same thing at a
> later date:
>
> Sub SaveAccessObjectsToFile()
> Dim obj As AccessObject
> Dim dbs As Object
> Dim dbd As Object
> Dim filesaveloc as string
> Set dbs = Application.CurrentProject
> Set dbd = Application.CurrentData
> filesaveloc = "C:\Documents And Settings\" ' Edit to your preferred
> save location
> For Each obj In dbs.AllForms
> SaveAsText acForm, obj.Name, filesaveloc & obj.Name & ".cls"
> Next
> For Each obj In dbs.AllModules
> SaveAsText acModule, obj.Name, filesaveloc & obj.Name & ".bas"
> Next
> For Each obj In dbd.AllQueries
> SaveAsText acQuery, obj.Name, filesaveloc & obj.Name & ".sql"
> Next
> End Sub
>
> Note: I haven't been able to save table objects using "SaveAsText
> acTable", but this may be because the tables are linked rather than
> local to the mdb file executing this code.
>
> Thanks again!
>
> Much warmth,
>
> planetthoughtful
> ---
> "lost in thought"
>
http://www.planetthoughtful.org
>[/color]