sub5
Programmer
- Oct 12, 2005
- 104
I am learning Class Modules in access. I am looking at the "Cats" example in Access 97 Developer's Handbook
by Litwin, Getz, and Gilbert.
Basically when a user wants to change details of a cat, they open a form using unbound controls and they select a cat id. The programing then goes through multiple procedures in the forms class module and the cats class module to pull the data. The user changes something, then again multiple procedures and variables are used from the to modules to put the revised data back into the cats table.
Why go through all that programming when you could just have a bound form to the cats table? (data validation can be in the form and table)
(I know it's good to use a simple example to illustrate a complex principle, but I struggle to see the reason for the class module for something like this.)
I am sure I am missing some key benefit.
Anyone know any other class module examples out there?
by Litwin, Getz, and Gilbert.
Basically when a user wants to change details of a cat, they open a form using unbound controls and they select a cat id. The programing then goes through multiple procedures in the forms class module and the cats class module to pull the data. The user changes something, then again multiple procedures and variables are used from the to modules to put the revised data back into the cats table.
Why go through all that programming when you could just have a bound form to the cats table? (data validation can be in the form and table)
(I know it's good to use a simple example to illustrate a complex principle, but I struggle to see the reason for the class module for something like this.)
I am sure I am missing some key benefit.
Anyone know any other class module examples out there?