C
Chris Nebinger
Classes and modules are totally seperate beasts.
Modules contain functions and subroutines. You can call
them directly (Date(), DateAdd(), Replace(), Split()).
Classes are objects. They have their own properties,
methods, and events. DAO is full of objects (Database,
Recordset, TableDef, QueryDef). You have to create
objects, then change properties or call methods.
A good resource for using class modules in Access is here:
http://www.attcanada.net/%
7ekallal.msn/Articles/WhyClass.html
To add to that, I also use classes whenever I have complex
code that I will move from one database to the other. I
have a class that wraps the API calls to bring up the File
Open dialog box.
Also, if you have many developers working on a project,
you can keep code seperate from others. Also, you can
write a class to return dummy data, and then do
development around that class until you can finish and
test the entire class.
Chris Nebinger
has to be instantiated and the other not?
Modules contain functions and subroutines. You can call
them directly (Date(), DateAdd(), Replace(), Split()).
Classes are objects. They have their own properties,
methods, and events. DAO is full of objects (Database,
Recordset, TableDef, QueryDef). You have to create
objects, then change properties or call methods.
A good resource for using class modules in Access is here:
http://www.attcanada.net/%
7ekallal.msn/Articles/WhyClass.html
To add to that, I also use classes whenever I have complex
code that I will move from one database to the other. I
have a class that wraps the API calls to bring up the File
Open dialog box.
Also, if you have many developers working on a project,
you can keep code seperate from others. Also, you can
write a class to return dummy data, and then do
development around that class until you can finish and
test the entire class.
Chris Nebinger
classes and modules? Does it have anything to do with one-----Original Message-----
Hey all,
I'm using Access 2000, what's the difference between
has to be instantiated and the other not?