Tim Hunter <th*****@rochester.rr.comwrote in
news:45***********************@news.qwest.net:
I am using Access 2003 under WinXP.
I currently support a huge Excel Wokbook that is a maintenance
nightmare. There are about 15 worksheets each with lots of
formulas...Anyway I am thinking of converting this application to an
Access solution and specifically using Class Objects. I am comfortable
with Access but I have never worked with creating Classes. Finally my
question. I am thinking of creating one Class Form Object to match one
worksheet and then create instances of that object to accomplish the
remaining forms. Am I on the right track? I haven't worked out the
logic yet as I am still trying to design this application. My thoughts
are that when a change is requested, i will change the original object
and the instances will carry those changes forward.
You could create a form. A form is like a class but with two
differences:
If it has a module, or if its HasModule property is set to True, its
default instance is immediately available with no dimming or setting
required using the syntax Form_NameofForm and all its public properties,
child objects and procedures are available as Form_NameofForm.
It has its own interface, that is it can be and usually is visible.
Use of the syntax Form_NameofForm opens the default instance of the
form. It does not close automatically and must be closed explicitly, if
that is desired. But not closing it will not result in ghosts; it will
close automatically on application close.
Multiple instances of a form can be effected as:
Dim MyBunchofSpreadSheetForms(0 to 5) as Form_MySpreadSheet
For z = 0 to 5
Set MyBunchofSpreadSheetForms(z) = New Form_MySpreadSheet
Next z
I believe this will accomplish what you describe.
Are you on the right track? A form is not a spreadsheet. What you
suggest is not a common solution. It could be more effective to return
to the original purpose of the spreadsheet and to analyse, brain storm,
test hypothesize or whatever about the best feasible solution. This
process can be crippled if it is subject to the notion that it must
emulate the spreadsheets used, apparently not so successfully,
previously.
--
lyle fairfield