473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Class Objects

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.

TIA

Tim Hunter

*** Sent via Developersdex http://www.developersdex.com ***
Jan 12 '07 #1
6 2240

"Tim Hunter" <th*****@rochester.rr.comwrote in message
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.
I'm not at all sure you are on the right track... Forms are objects, and
Form modules are the class modules associated with the Form. If you have
hopes that Access is just going to be Excel on steroids to handle workbooks
that are too much for Excel, you are going to be sadly disappointed. And,
that is something of the drift I got from your post.

I don't think you are going to be able to use Class objects to make Access
tables and forms into "proxy Excel Workbooks", not easily, at least. And,
that would be particularly true if you, as appears to be the case, are not
an experienced object-oriented developer.

My suggestion would be that you invest some time and effort in learning what
a database is (as opposed to a spreadsheet), what Access is and how it
works, and then decide whether Access would be a good software tool to meet
the business requirements of your data and processing needs.

Larry Linson
Microsoft Access MVP
Jan 12 '07 #2
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
Jan 12 '07 #3
Well I'm not trying to make Access work like a workbook but that said, i
agree with you. I need to develop skills in Object Oriented programming
before i tackle anything like this. At first i thought it might be a
good opportunity to satisfy a user request and jump into OOP at the same
time. I believe the application can be written in plain old fashioned
Access and still meet my objectives of reducing the maintenance
nightmare.
Thank you very much for your reply..

Tim Hunter

*** Sent via Developersdex http://www.developersdex.com ***
Jan 12 '07 #4
"Larry Linson" <bo*****@localhost.notwrote in
news:MzEph.16053$AM4.15982@trnddc07:
My suggestion would be that you invest some time and effort in
learning what a database is (as opposed to a spreadsheet), what
Access is and how it works, and then decide whether Access would
be a good software tool to meet the business requirements of your
data and processing needs.
I agree with Larry's reading of the situation and second his advice.
Import your spreadsheets into Access. Use the point-and-click tools
to create forms and reports from the spreadsheets as you imported
them. Learn the basics, and only then start thinking about how to
make it better. You won't get anywhere if you don't know how to use
Access.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jan 12 '07 #5
Tim Hunter <th*****@rochester.rr.comwrote in
news:45***********************@news.qwest.net:
Well I'm not trying to make Access work like a workbook but that
said, i agree with you. I need to develop skills in Object
Oriented programming before i tackle anything like this. At first
i thought it might be a good opportunity to satisfy a user request
and jump into OOP at the same time. I believe the application can
be written in plain old fashioned Access and still meet my
objectives of reducing the maintenance nightmare.
I don't see any role for standalone class modules. But form class
modules, yes, of course.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jan 12 '07 #6
Tim Hunter <th*****@rochester.rr.comwrote in
news:45***********************@news.qwest.net:
Well I'm not trying to make Access work like a workbook but that
said, i agree with you. I need to develop skills in Object
Oriented programming before i tackle anything like this. At first
i thought it might be a good opportunity to satisfy a user request
and jump into OOP at the same time. I believe the application can
be written in plain old fashioned Access and still meet my
objectives of reducing the maintenance nightmare.
Oh, and Access/VBA is *not* a good platform for learning OOP, as
it's simply not really object-oriented at all, at least not in the
way the term OOP is generally used when discussing programming
languages.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jan 12 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9577
by: Fernando Rodriguez | last post by:
Hi, I need to traverse the methods defined in a class and its superclasses. This is the code I'm using: # An instance of class B should be able to check all the methods defined in B #and A,...
13
2352
by: Bryan Parkoff | last post by:
I have created three classes according to my own design. First class is called CMain. It is the Top Class. Second class and third class are called CMemory and CMPU. They are the sub-classes....
21
4031
by: Jon Slaughter | last post by:
I have a class that is basicaly duplicated throughout several files with only members names changing according to the class name yet with virtually the exact same coding going on. e.g. class...
2
1612
by: Fish | last post by:
I have been researching the correct way to organize my solution so that it makes best use of VB.NET inherent ability to manage resources such as objects. My solution contains 2 projects and the...
37
3978
by: JohnGoogle | last post by:
Hi, Newbie question... After a recent article in VSJ I had a go at implementing a Fraction class to aid my understanding of operator overloading. After a previous message someone suggested...
0
893
by: David | last post by:
Hi, I'm working on a project where we're juggling with two potential implementations. In the two scenarios, we create objects in the base namespace. These objects are interdependent, in the sense...
15
3503
by: Juha Nieminen | last post by:
I'm sure this is not a new idea, but I have never heard about it before. I'm wondering if this could work: Assume that you have a common base class and a bunch of classes derived from it, and...
5
1282
by: Nathan Harmston | last post by:
HI, I m trying to start an api in a similar way to the djangic way of Class.objects.all(). Ie objects is a "Manager" class. So: class Foo(object): def __init__(self): self.test = "NEE"
0
836
by: =?Utf-8?B?Qm9iUGl0YnVsbA==?= | last post by:
Suppose that my base class is A and I have classes B, C and D deriving from A. I then have B2 deriving from B and C2 deriving from C... and B3 deriving from B2. Then... suppose that I have some...
55
3912
by: tonytech08 | last post by:
How valuable is it that class objects behave like built-in types? I appears that the whole "constructor doesn't return a value because they are called by the compiler" thing is to enable...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7133
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7405
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5643
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.