Cronk
Registered User.
- Local time
- Tomorrow, 02:56
- Joined
- Jul 4, 2013
- Messages
- 2,799
Frothingslosh, your criticism about Autonumber fields is valid. As I said, it was a quick and dirty solution to tediously adding the Get/Let properties mainly when I started experimenting with Class modules in around 2000.
As to having the text file output being saved in unique folders, and using vba to create the class by importing the text files, keep in mind it is a one off process for the main tables in an application.
JDraw, I suggest you start dabbling with class modules because once you get the hang of it, I think you will see positive impact on your development times. As to speed comparison with dLookup, I've not tested it but I'd expect the class module would be slower. But having read the record's field values into the class variables, the class object can be passed to different routines so one class read as opposed to multiple dLookups.
Once you get used to a class object based on a single table, it's easy to extend it to have a class object containing a collection of other objects. For example, I developed a training database where the course object contained a collection of student class objects.
As to having the text file output being saved in unique folders, and using vba to create the class by importing the text files, keep in mind it is a one off process for the main tables in an application.
JDraw, I suggest you start dabbling with class modules because once you get the hang of it, I think you will see positive impact on your development times. As to speed comparison with dLookup, I've not tested it but I'd expect the class module would be slower. But having read the record's field values into the class variables, the class object can be passed to different routines so one class read as opposed to multiple dLookups.
Once you get used to a class object based on a single table, it's easy to extend it to have a class object containing a collection of other objects. For example, I developed a training database where the course object contained a collection of student class objects.