Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Re: How To Rebu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 16 of 17 Topic 30207 of 31296
Post > Topic >>

Re: How To Rebuild Objects From Text Files?

by Chris Martin <nr.cmartin.dfgh.net@[EMAIL PROTECTED] > May 23, 2008 at 09:26 AM

This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware
tools.

---1004945062-17764-1211549171=:5724
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT

I encountered the same error trying to ex****t/im****t an MDB as text:

    Error 2205 (Database Name) can't create the output file.

I was using the same posted code. The error occurred at the same place as
Wayne's attempt:  app.LoadFromText acForm, Name, FileName

Same error was thrown for re****ts as for forms, however qry defs and
modules re-loaded without error. Wayne wondered if the error related to
compatibility between versions (a converted Access 2000 database). Mine
was a converted Access 2000 database as well, so I did some experimenting.

Starting from scratch, I converted the Access 2000 mdb to Access 2003
using the 'Convert Database' menu tool. The resulting database
consistently threw error 2205 with this code.

I then created a new (empty) 2003 mdb and im****ted all objects from the
original mdb. The resulting database was error-free when running the text
ex****t/im****t code.

This confirms that the problem likely relates to non-native 2003 databases
(converted from Access 2000). Apparently when Access im****ts objects from
A2000 into A2003 it creates 'pure' A2003 objects, whereas the 'Convert
Database' menu tool yields some obscure differences.

FWIW, I have included below (after the quoted text from Wayne) the 2 text
files from the same (simple) form, (1) ex****ted from the
A2000-converted-to-A2003, and (2) ex****ted from the native A2003 version.
There are 2 lines in the native 2003 version which are not in the
converted version:

---------------
GUID = Begin
      0x8b8505f89b28904d82001a842a850a56
End
NameMap = Begin
      0x0acc0e5500000000000000000000000000000000000000000c00000002000000,
          0x0000000000000000000000000000
      End
---------------

I am unsure if these lines might be related to the error, but in general
my results suggest that im****ting all objects into a new 2003 database is
a better strategy for conversion than using Access' menu tool, at least
for text ex****t/im****t functionality, but perhaps for other (hidden)
functionality as well.

One other note. My mdb had a reference to a local MDE code library. The
referenced MDE was created in Access 2000, so I originally suspected this
lib ref. was the culprit. However, using the im****ted (native 2003)
database, there was no error with or without the Access 2000 MDE lib ref.
Using the converted version, the error was consistently thrown, with or
without the reference.

Chris

--
Chris Martin
UNC-CH


On Sun, 18 May 2008, Wayne wrote:

> On May 19, 1:51 am, lyle fairfield <lyle.fairfi...@[EMAIL PROTECTED]
> wrote:
>
>> A little further search brings up this error described but no
>> suggestion as to its cause or cure. If you were to post the text file
>> for the first form that fails, some of us might see if we can load the
>> form into a database with the LoadFromText method. If so, we will know
>> its not your form. If not, we might be able to study the problem in
>> general terms, (or you could just send me the text file and I'll post
>> it: lyle dot fairfield at gmail dot com).- Hide quoted text -
>
> After a few hours of experimentation I've made a few observations.
> The DB I am working with is an A2003 database, but I have a sneaking
> suspicion that it is one that I have converted from A2000.  Not sure
> if this has any bearing on anything but I im****ted all of the objects
> into a new A2003 database and tried running the code again. It
> partially worked this time. As before, all the objects were saved as
> text, but this time some of the forms were im****ted from the text
> files before it fell over.  I then tried im****ting some of the forms
> that were missed on the im****t one by one by using the LoadFromText
> method and this worked. This seems to indicate that there is nothing
> inherently wrong with the forms.  When I view the forms they look and
> work fine.
>
> The scenario is the same on a couple of other databases that I tried
> running the code on. Some of the forms will im****t, then the code
> fails. I'm 99% sure that these are native A2003 databases and haven't
> been converted from an earlier version. As to why the original code is
> failing and not im****ting all the objects, I don't know.  It may well
> remain a mystery of the ages.  At least now I know that in a worst
> case scenario if I ever have to use this, I can ex****t all the objects
> to text using the original code and then use the LoadFromText method
> to im****t them all one by one.  Quite laborious, but it would work.
>
> I intend to experiment with this further when I have a bit more time
> on my hands and will post if I get to the root of the problem.


-----------------------
form from Access 2000 converted to Access 2003
-----------------------
Version =20
VersionRequired =20
Checksum =1319579709
Begin Form
     AutoResize = NotDefault
     RecordSelectors = NotDefault
     NavigationButtons = NotDefault
     DividingLines = NotDefault
     DefaultView =0
     ScrollBars =0
     TabularFamily =0
     BorderStyle =3
     PictureAlignment =2
     DatasheetGridlinesBehavior =3
     GridX =24
     GridY =24
     DatasheetFontHeight =10
     Left =270
     Top =210
     Right =8910
     Bottom =4530
     DatasheetGridlinesColor =12632256
     RecSrcDt = Begin
         0x805fd4ecd754e340
     End
     Caption ="Form not ready"
     DatasheetFontName ="Arial"
     Begin
         Begin Label
             BackStyle =0
             FontName ="Tahoma"
         End
         Begin CommandButton
             FontSize =8
             FontWeight =400
             ForeColor =-2147483630
             FontName ="Tahoma"
         End
         Begin Section
             Height =2880
             BackColor =-2147483633
             Name ="Detail"
             GUID = Begin
                 0xa45a656675e46f489f624edcd2dbe040
             End
             Begin
                 Begin Label
                     OverlapFlags =85
                     TextAlign =2
                     Width =5580
                     Height =600
                     FontSize =16
                     Name ="Label0"
                     Caption ="Form not ready."
                     GUID = Begin
                         0xc096deb6ece8ae41af262a11be30cb7e
                     End
                 End
                 Begin CommandButton
                     OverlapFlags =85
                     Left =2100
                     Top =1140
                     Width =1035
                     Height =405
                     Name ="cmdClose"
                     Caption ="Close"
                     OnClick ="[Event Procedure]"
                     GUID = Begin
                         0x663bfb42d6a6f246a33b57112e840d45
                     End
                 End
             End
         End
     End
End
CodeBehindForm
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Compare Database
Option Explicit


Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click


     DoCmd.Close

Exit_cmdClose_Click:
     Exit Sub

Err_cmdClose_Click:
     MsgBox err.Description
     Resume Exit_cmdClose_Click

End Sub
-----------------------
-----------------------
-----------------------


-----------------------
form from Access 2003 im****ted from Access 2000
-----------------------
Version =20
VersionRequired =20
Checksum =-416531212
Begin Form
     AutoResize = NotDefault
     RecordSelectors = NotDefault
     NavigationButtons = NotDefault
     DividingLines = NotDefault
     DefaultView =0
     ScrollBars =0
     TabularFamily =0
     BorderStyle =3
     PictureAlignment =2
     DatasheetGridlinesBehavior =3
     GridX =24
     GridY =24
     DatasheetFontHeight =10
     Left =270
     Top =210
     Right =8910
     Bottom =4530
     DatasheetGridlinesColor =12632256
     RecSrcDt = Begin
         0x805fd4ecd754e340
     End
     GUID = Begin
         0x8b8505f89b28904d82001a842a850a56
     End
     NameMap = Begin
        
0x0acc0e5500000000000000000000000000000000000000000c00000002000000
,
         0x0000000000000000000000000000
     End
     Caption ="Form not ready"
     DatasheetFontName ="Arial"
     Begin
         Begin Label
             BackStyle =0
             FontName ="Tahoma"
         End
         Begin CommandButton
             FontSize =8
             FontWeight =400
             ForeColor =-2147483630
             FontName ="Tahoma"
         End
         Begin Section
             Height =2880
             BackColor =-2147483633
             Name ="Detail"
             GUID = Begin
                 0xb7565ebe5f29f74c92a186f19a1e8405
             End
             Begin
                 Begin Label
                     OverlapFlags =85
                     TextAlign =2
                     Width =5580
                     Height =600
                     FontSize =16
                     Name ="Label0"
                     Caption ="Form not ready."
                     GUID = Begin
                         0x5e6a4c00564dfc4d90ae25a2e161fb30
                     End
                 End
                 Begin CommandButton
                     OverlapFlags =85
                     Left =2100
                     Top =1140
                     Width =1035
                     Height =405
                     Name ="cmdClose"
                     Caption ="Close"
                     OnClick ="[Event Procedure]"
                     GUID = Begin
                         0x0b9721ce18424949a071843075903f42
                     End
                 End
             End
         End
     End
End
CodeBehindForm
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Compare Database
Option Explicit


Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click


     DoCmd.Close

Exit_cmdClose_Click:
     Exit Sub

Err_cmdClose_Click:
     MsgBox Err.Description
     Resume Exit_cmdClose_Click

End Sub



---1004945062-17764-1211549171=:5724--
 




 17 Posts in Topic:
How To Rebuild Objects From Text Files?
Wayne <cqdigital@[EMAI  2008-05-09 02:11:51 
Re: How To Rebuild Objects From Text Files?
lyle fairfield <lyle.f  2008-05-09 02:33:06 
Re: How To Rebuild Objects From Text Files?
"Rick Brandt" &  2008-05-09 06:08:38 
Re: How To Rebuild Objects From Text Files?
lyle fairfield <lyle.f  2008-05-09 05:55:26 
Re: How To Rebuild Objects From Text Files?
lyle fairfield <lyle.f  2008-05-09 06:38:42 
Re: How To Rebuild Objects From Text Files?
"Larry Linson"   2008-05-10 01:00:07 
Re: How To Rebuild Objects From Text Files?
lyle fairfield <lyle.f  2008-05-09 18:51:49 
Re: How To Rebuild Objects From Text Files?
"Larry Linson"   2008-05-11 22:01:45 
Re: How To Rebuild Objects From Text Files?
Wayne <cqdigital@[EMAI  2008-05-17 23:57:47 
Re: How To Rebuild Objects From Text Files?
lyle fairfield <lyle.f  2008-05-18 03:08:03 
Re: How To Rebuild Objects From Text Files?
Wayne <cqdigital@[EMAI  2008-05-18 03:55:47 
Re: How To Rebuild Objects From Text Files?
lyle fairfield <lyle.f  2008-05-18 07:01:37 
Re: How To Rebuild Objects From Text Files?
Wayne <cqdigital@[EMAI  2008-05-18 08:34:32 
Re: How To Rebuild Objects From Text Files?
lyle fairfield <lyle.f  2008-05-18 08:51:46 
Re: How To Rebuild Objects From Text Files?
Wayne <cqdigital@[EMAI  2008-05-18 22:49:30 
Re: How To Rebuild Objects From Text Files?
Chris Martin <nr.cmart  2008-05-23 09:26:11 
Re: How To Rebuild Objects From Text Files?
Wayne <cqdigital@[EMAI  2008-05-23 13:17:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 12:55:48 CDT 2008.