PC Review


Reply
Thread Tools Rate Thread

Corrupted form-module ?

 
 
Thomas Kroljic
Guest
Posts: n/a
 
      24th Feb 2005
I have an Access 2000 application (MDB) with many forms. Each form as a VBA
module behind it. Over the past year or so, I experience a problem with one
specific form. Every once in awhile, if I make a change to the form or the
VBA code behind the form, when I go to run the application, it can not open
the form I just updated. I've tried exporting all the forms, tables,
queries, modules. to another (new) database but I still receive the same
error. I always have to go back to a previous version of the database to
begin again to make (apply) my updates to the form in question and hope that
I don't receive the same error again.



It's as if the form loses its association to the VBA module or the form and
VBA module become corrupt for some reason. Not sure what it is. I've tried
exporting/importing to a new database; I've tried setting the Has Module
status to No for this particular form and then importing the code.



Any suggestions?



The form in question has grown quite a bit over the last year. It would take
some time to create a totally new form with the same functionality. But if
this is what I have to do, so be it.



I've run JetComp against the entire database and still receive the error.



I'm running Access 2000 version 9.0.6926 SP-3



Thank you,

Thomas J. Kroljic




 
Reply With Quote
 
 
 
 
=?Utf-8?B?QW5kcsOpRw==?=
Guest
Posts: n/a
 
      24th Feb 2005
It happened to me too.

I thing it's some corrupt pre-processing (posting) of the VB code.

When I got it it helped exporting the code to a text file.
recompiling the database
check the text file for weird characters eventually loading it in notepad
and resaving it to a new file.
reimport the code

AndreG

"Thomas Kroljic" wrote:

> I have an Access 2000 application (MDB) with many forms. Each form as a VBA
> module behind it. Over the past year or so, I experience a problem with one
> specific form. Every once in awhile, if I make a change to the form or the
> VBA code behind the form, when I go to run the application, it can not open
> the form I just updated. I've tried exporting all the forms, tables,
> queries, modules. to another (new) database but I still receive the same
> error. I always have to go back to a previous version of the database to
> begin again to make (apply) my updates to the form in question and hope that
> I don't receive the same error again.
>
>
>
> It's as if the form loses its association to the VBA module or the form and
> VBA module become corrupt for some reason. Not sure what it is. I've tried
> exporting/importing to a new database; I've tried setting the Has Module
> status to No for this particular form and then importing the code.
>
>
>
> Any suggestions?
>
>
>
> The form in question has grown quite a bit over the last year. It would take
> some time to create a totally new form with the same functionality. But if
> this is what I have to do, so be it.
>
>
>
> I've run JetComp against the entire database and still receive the error.
>
>
>
> I'm running Access 2000 version 9.0.6926 SP-3
>
>
>
> Thank you,
>
> Thomas J. Kroljic
>
>
>
>
>

 
Reply With Quote
 
Thomas Kroljic
Guest
Posts: n/a
 
      24th Feb 2005
Andre,
Thanks for your response.

How did you go about exporting the VB code? Did you go into the VBA
editor and select file/export? What file type did you save it as?

When you import it back in, what exact steps did you do?

Thanks,
Thomas J. Kroljic

"AndréG" <(E-Mail Removed)> wrote in message
news:3600E07B-FA72-4A86-9FEC-(E-Mail Removed)...
> It happened to me too.
>
> I thing it's some corrupt pre-processing (posting) of the VB code.
>
> When I got it it helped exporting the code to a text file.
> recompiling the database
> check the text file for weird characters eventually loading it in notepad
> and resaving it to a new file.
> reimport the code
>
> AndreG
>
> "Thomas Kroljic" wrote:
>
> > I have an Access 2000 application (MDB) with many forms. Each form as a

VBA
> > module behind it. Over the past year or so, I experience a problem with

one
> > specific form. Every once in awhile, if I make a change to the form or

the
> > VBA code behind the form, when I go to run the application, it can not

open
> > the form I just updated. I've tried exporting all the forms, tables,
> > queries, modules. to another (new) database but I still receive the same
> > error. I always have to go back to a previous version of the database to
> > begin again to make (apply) my updates to the form in question and hope

that
> > I don't receive the same error again.
> >
> >
> >
> > It's as if the form loses its association to the VBA module or the form

and
> > VBA module become corrupt for some reason. Not sure what it is. I've

tried
> > exporting/importing to a new database; I've tried setting the Has Module
> > status to No for this particular form and then importing the code.
> >
> >
> >
> > Any suggestions?
> >
> >
> >
> > The form in question has grown quite a bit over the last year. It would

take
> > some time to create a totally new form with the same functionality. But

if
> > this is what I have to do, so be it.
> >
> >
> >
> > I've run JetComp against the entire database and still receive the

error.
> >
> >
> >
> > I'm running Access 2000 version 9.0.6926 SP-3
> >
> >
> >
> > Thank you,
> >
> > Thomas J. Kroljic
> >
> >
> >
> >
> >



 
Reply With Quote
 
margaret bartley
Guest
Posts: n/a
 
      24th Feb 2005
Do you have all the updates for Access 2000?
I vaguely seem to recall that this was a known problem that was fixed with
one of the updates.


"Thomas Kroljic" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I have an Access 2000 application (MDB) with many forms. Each form as a

VBA
> module behind it. Over the past year or so, I experience a problem with

one
> specific form. Every once in awhile, if I make a change to the form or the



 
Reply With Quote
 
=?Utf-8?B?QW5kcsOpRw==?=
Guest
Posts: n/a
 
      25th Feb 2005
Thomas,

I would just export it as proposed (.cls)
then delete the code module by using "delete" in the Visual basic editor's
property of your form's code (right mouse button).
set the form has module property to no
compact and save the database or even better create a new database and
reimport all (but this form without code).
then reopen and open a blank VB class module for this form by using the
"View", "code" from the menu bar that will open a new clean and empty module
in the VB editor
Check your exported code (.cls) file carefully using a text editor (notepad)
for any weird or foreign characters.
replace the ASCII code text opening it from a text editor (notepad is fine)
using "copy text" and paste into the opened VB editor form's class module
take care not to enter the "attributes" lines (first few lines of the .cls
file).
I hope this will help
good luck
rgds
Andre

"Thomas Kroljic" wrote:

> Andre,
> Thanks for your response.
>
> How did you go about exporting the VB code? Did you go into the VBA
> editor and select file/export? What file type did you save it as?
>
> When you import it back in, what exact steps did you do?
>
> Thanks,
> Thomas J. Kroljic
>


 
Reply With Quote
 
Thomas Kroljic
Guest
Posts: n/a
 
      25th Feb 2005
AndreG,
Thanks for the explanation. I'll give it a try.
thomas j. kroljic

"AndréG" <(E-Mail Removed)> wrote in message
news18FA473-FF87-498A-B929-(E-Mail Removed)...
> Thomas,
>
> I would just export it as proposed (.cls)
> then delete the code module by using "delete" in the Visual basic editor's
> property of your form's code (right mouse button).
> set the form has module property to no
> compact and save the database or even better create a new database and
> reimport all (but this form without code).
> then reopen and open a blank VB class module for this form by using the
> "View", "code" from the menu bar that will open a new clean and empty

module
> in the VB editor
> Check your exported code (.cls) file carefully using a text editor

(notepad)
> for any weird or foreign characters.
> replace the ASCII code text opening it from a text editor (notepad is

fine)
> using "copy text" and paste into the opened VB editor form's class module
> take care not to enter the "attributes" lines (first few lines of the .cls
> file).
> I hope this will help
> good luck
> rgds
> Andre
>
> "Thomas Kroljic" wrote:
>
> > Andre,
> > Thanks for your response.
> >
> > How did you go about exporting the VB code? Did you go into the VBA
> > editor and select file/export? What file type did you save it as?
> >
> > When you import it back in, what exact steps did you do?
> >
> > Thanks,
> > Thomas J. Kroljic
> >

>



 
Reply With Quote
 
Thomas Kroljic
Guest
Posts: n/a
 
      25th Feb 2005
Margaret,
Thanks for responding. Not sure if I have all the updates. I believe I'm
at SP-3. Do you know if
this is the latest or is there another service pak? I'll check the MS
website.

Thanks,
Thomas J. Kroljic

"margaret bartley" <may04_NOT_THIS_@mindspring.com> wrote in message
news:%(E-Mail Removed)...
> Do you have all the updates for Access 2000?
> I vaguely seem to recall that this was a known problem that was fixed with
> one of the updates.
>
>
> "Thomas Kroljic" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > I have an Access 2000 application (MDB) with many forms. Each form as a

> VBA
> > module behind it. Over the past year or so, I experience a problem with

> one
> > specific form. Every once in awhile, if I make a change to the form or

the
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HDI: from module, open form, pass value back into module? C Hayes Microsoft Access VBA Modules 3 15th Feb 2008 02:39 PM
Problem calling Error Handler in Standard Module from Form Module =?Utf-8?B?Sm9obiBE?= Microsoft Access Form Coding 2 19th Apr 2007 02:26 AM
In Excel vba how do you Launch code a standalone Module from a Form or other Module ? tmb Microsoft Excel Discussion 1 10th Apr 2005 11:40 PM
Corrupted form/vba module Thomas Kroljic Microsoft Access VBA Modules 4 9th Nov 2004 03:04 AM
Re: Class Module corrupted when database is decompiled avishesh Microsoft Access VBA Modules 0 2nd Aug 2003 01:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:50 PM.