M
moondaddy
I have a large Access 2003 application which seems to have some corruption
in it. I've tried importing everything into a new mdb but that doesn't seem
to get rid of the problems. the problem is that sometimes when I open a
class in the code environment, the application will crash. when I cant get
around this, I have to import everything into a new app. But lately, that
doesn't seem to fix it. Also, sometimes I get the error "User defined type
not defined" when I know that's not the problem. especially since all I did
is add some white space between 2 methods (it compiled before but not
after). This app is 2 years in the making with 200+ forms and 250,000+
lines of code so recreating all the forms by hand isn't a good option. I
was hoping I could find some code that would loop through all the forms and
the for each form loop though all the objects and read there properties such
as size, location, format, etc. and then use that data to create new
controls in new forms exactly like the old ones (but with out the
corruption). All the tables are linked tables to SQL server and all queries
are pass-through queries to sql server so they shouldn't be a problem to
replace. As far as the code goes, its ease to loop through all the code
behind and classes and read them into strings, and then use those strings to
create new classes in the new mdb. Where I really need help is with the
forms creation.
Can anyone help with this?
Thanks.
in it. I've tried importing everything into a new mdb but that doesn't seem
to get rid of the problems. the problem is that sometimes when I open a
class in the code environment, the application will crash. when I cant get
around this, I have to import everything into a new app. But lately, that
doesn't seem to fix it. Also, sometimes I get the error "User defined type
not defined" when I know that's not the problem. especially since all I did
is add some white space between 2 methods (it compiled before but not
after). This app is 2 years in the making with 200+ forms and 250,000+
lines of code so recreating all the forms by hand isn't a good option. I
was hoping I could find some code that would loop through all the forms and
the for each form loop though all the objects and read there properties such
as size, location, format, etc. and then use that data to create new
controls in new forms exactly like the old ones (but with out the
corruption). All the tables are linked tables to SQL server and all queries
are pass-through queries to sql server so they shouldn't be a problem to
replace. As far as the code goes, its ease to loop through all the code
behind and classes and read them into strings, and then use those strings to
create new classes in the new mdb. Where I really need help is with the
forms creation.
Can anyone help with this?
Thanks.