New to class modules....not sure I really understand them properly.
What I'm trying to do is create a list of engineers, log the dates each has worked and produce a count of jobs per day to calculate an average with.
So....what I was thinking of was something like an array of Engineers(1 to 200) as string and two other variables, one being WorkDay(1 to 10000) date and JobDay(1 to 10000) as integer
However, a co-worker suggested using a class module instead:
Now, I've managed to get it to create multiple instances of the class:
And I can read them back in sequential order:
Now comes the complete bonehead question:
How do I reference an individual instance of the class in order to assign values to the other variables?
Like.....if code is scanning through a data set, finds the engineer name, searches the collection for a matching engineer name......how does it assign the date worked to WorkDay(n) of that particular instance?
Or am I barking up the wrong tree completely and this can be done easily with a multidimensional array (also new to me).
Google has only managed to get me this far....
Bookmarks