Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 22nd, 2006, 11:05 AM
Bernard D
Guest
 
Posts: n/a
Default Revert mde to mdb - Possible

Hi,

I've just been asked to bring a couple of Access 97 apps up to date.
The source files are 'difficult to locate' as they were done in 1999.

I have the mde files, but Access says it can't simply convert these to
Access 2003 mde's.

Is it possible to revert these files back to their original format,
and if so how?

Regards,
Bernard D
  #2  
Old February 22nd, 2006, 12:05 PM
Br@dley
Guest
 
Posts: n/a
Default Re: Revert mde to mdb - Possible

Bernard D wrote:[color=blue]
> Hi,
>
> I've just been asked to bring a couple of Access 97 apps up to date.
> The source files are 'difficult to locate' as they were done in 1999.
>
> I have the mde files, but Access says it can't simply convert these to
> Access 2003 mde's.
>
> Is it possible to revert these files back to their original format,
> and if so how?[/color]

Nope. The design elements are removed from the MDE so it can't be
converted/reverted/etc.
--
regards,

Br@dley


  #3  
Old February 22nd, 2006, 01:25 PM
Lauren Wilson
Guest
 
Posts: n/a
Default Re: Re: Revert mde to mdb - Possible

On Wed, 22 Feb 2006 22:52:27 +1100, "Br@dley" <null@mail.oz> wrote:
[color=blue]
>Bernard D wrote:[color=green]
>> Hi,
>>
>> I've just been asked to bring a couple of Access 97 apps up to date.
>> The source files are 'difficult to locate' as they were done in 1999.
>>
>> I have the mde files, but Access says it can't simply convert these to
>> Access 2003 mde's.
>>
>> Is it possible to revert these files back to their original format,
>> and if so how?[/color]
>
>Nope. The design elements are removed from the MDE so it can't be
>converted/reverted/etc.[/color]

Oh the beauty of responsible, effective backups and archiving is once
again revealed!
  #4  
Old February 22nd, 2006, 02:15 PM
Tom van Stiphout
Guest
 
Posts: n/a
Default Re: Revert mde to mdb - Possible

On Wed, 22 Feb 2006 22:52:27 +1100, "Br@dley" <null@mail.oz> wrote:

Bradley probably meant that the CODE elements are removed. The design
elements are still available, using code like below. Also, the tables
and queries are still fully available.

Sub TestMde()
Const ThePath As String = "C:\Program Files\Microsoft
Office97\Office\Samples\Northwind.mde"
Const TheTempFolder As String = "C:\Junk\"
Dim db As DAO.Database
Dim cnt As DAO.Container
Dim doc As DAO.Document
Dim appData As Access.Application
Dim f As Form
Dim c As Control

Set appData = fGetRefNoAutoexec(ThePath) 'See
http://www.mvps.org/access/api/api0068.htm
Set db = appData.CurrentDb()
'DBEngine.Workspaces(0).OpenDatabase(ThePath)

Set cnt = db.Containers("Forms")
For Each doc In cnt.Documents
'appData.SaveAsText acForm, doc.Name, TheTempFolder & cnt.Name
& "_" & doc.Name & ".txt" 'Works for forms without code?
appData.DoCmd.OpenForm doc.Name, acNormal

Set f = appData.Forms(doc.Name)
For Each c In f
'Just showing you have access to all controls and
properties. Just save them in a meaningful way so you can recreate
them.
Debug.Print f.Name, c.Name, c.Left
Next c
DoCmd.Close acForm, f.Name
Next doc

db.Close
appData.CloseCurrentDatabase
Set appData = Nothing
End Sub

-Tom.


[color=blue]
>Bernard D wrote:[color=green]
>> Hi,
>>
>> I've just been asked to bring a couple of Access 97 apps up to date.
>> The source files are 'difficult to locate' as they were done in 1999.
>>
>> I have the mde files, but Access says it can't simply convert these to
>> Access 2003 mde's.
>>
>> Is it possible to revert these files back to their original format,
>> and if so how?[/color]
>
>Nope. The design elements are removed from the MDE so it can't be
>converted/reverted/etc.[/color]

  #5  
Old February 22nd, 2006, 04:25 PM
Larry Linson
Guest
 
Posts: n/a
Default Re: Revert mde to mdb - Possible

Do a little Googling at groups.google.com -- there was mention (I believe in
this newsgroup) of a package being available that could regenerate VBA
source from the compiled (tokenized) code in an MDE.

I caution, however, that since all comments are removed when the code is
tokenized, and the original names/labels-in-code-not-label-controls also
removed, it won't be easy or fun to read.

It is amazing to me how many developers and companies ignore the need to
retain the source of applications and end up "in this kind of box".

Larry Linson
Microsoft Access MVP

"Bernard D" <bdavis@castlecs.co.uk> wrote in message
news:akgov1p3begojl9cou63osf4tud1h6avgb@4ax.com...[color=blue]
> Hi,
>
> I've just been asked to bring a couple of Access 97 apps up to date.
> The source files are 'difficult to locate' as they were done in 1999.
>
> I have the mde files, but Access says it can't simply convert these to
> Access 2003 mde's.
>
> Is it possible to revert these files back to their original format,
> and if so how?
>
> Regards,
> Bernard D[/color]


  #6  
Old February 22nd, 2006, 04:55 PM
Randy Harris
Guest
 
Posts: n/a
Default Re: Revert mde to mdb - Possible


"Larry Linson" <bouncer@localhost.not> wrote in message
news:j50Lf.13676$p13.1931@trnddc08...[color=blue]
>
> It is amazing to me how many developers and companies ignore the need to
> retain the source of applications and end up "in this kind of box".[/color]


I think that most of us are cautious about backups because of past lessons,
learned the painful way.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.

[color=blue]
>
> Larry Linson
> Microsoft Access MVP
>[/color]

  #7  
Old February 23rd, 2006, 03:35 AM
David W. Fenton
Guest
 
Posts: n/a
Default Re: Revert mde to mdb - Possible

Bernard D <bdavis@castlecs.co.uk> wrote in
news:akgov1p3begojl9cou63osf4tud1h6avgb@4ax.com:
[color=blue]
> I've just been asked to bring a couple of Access 97 apps up to
> date. The source files are 'difficult to locate' as they were
> done in 1999.
>
> I have the mde files, but Access says it can't simply convert
> these to Access 2003 mde's.
>
> Is it possible to revert these files back to their original
> format, and if so how?[/color]

Have you read the Access help file's explanation of what an MDE is?
If you had, I don't think you'd need to post this question.

Why do people plunge into using features that they haven't made even
the slightest effort to understand?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #8  
Old February 23rd, 2006, 09:35 AM
polite person
Guest
 
Posts: n/a
Default Re: Revert mde to mdb - Possible

On Wed, 22 Feb 2006 16:14:07 GMT, "Larry Linson" <bouncer@localhost.not> wrote:
[color=blue]
>"Bernard D" <bdavis@castlecs.co.uk> wrote in message
>news:akgov1p3begojl9cou63osf4tud1h6avgb@4ax.com.. .[color=green]
>> Hi,
>>
>> I've just been asked to bring a couple of Access 97 apps up to date.
>> The source files are 'difficult to locate' as they were done in 1999.
>>
>> I have the mde files, but Access says it can't simply convert these to
>> Access 2003 mde's.
>>
>> Is it possible to revert these files back to their original format,
>> and if so how?
>>
>> Regards,
>> Bernard D[/color]
>[/color]
[color=blue]
>Do a little Googling at groups.google.com -- there was mention (I believe in
>this newsgroup) of a package being available that could regenerate VBA
>source from the compiled (tokenized) code in an MDE.
>
>I caution, however, that since all comments are removed when the code is
>tokenized, and the original names/labels-in-code-not-label-controls also
>removed, it won't be easy or fun to read.
>
>It is amazing to me how many developers and companies ignore the need to
>retain the source of applications and end up "in this kind of box".
>
> Larry Linson
> Microsoft Access MVP
>[/color]

Hi
One article of about the right date is
http://www.programmersheaven.com/art.../john/vbvm.htm
Microsoft's P-Code Implementation
by John Chamberlain

This includes a VB6 add-in for decompiling VBA, which didn't work for me probably because it is
version-specific in some way.
However reading the article suggests that decompiling a whole application is unlikely to be very
practical even if you have the right tool.

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles