Hello all,
Hope everyone is doing well and I am hoping one of you kind souls can help me get moving in the right direction on this.
I am creating a Shelter Manager for a local humane society I volunteer at (so no money is involved here). I have a nice ms access system I have built that has animals (lots of data), volunteers, adopters, medical records, a do not adopt list, reports and more and all is going well and I can track pretty well everything that happens from the intake of an animal, to going out the door (adoption, rescue, reclaim etc)
I have a table of Medical treatments (fields are: [Treatment Type Code], [Treatment Name], [Treatment Description] ) that are used right now to simply record in another table when a treatment is completed and is stored as basically a [Datefield], [animalID], [Treatment Type Code], [Notes].
I am trying to wrap my head around the following problem / task. These procedures / treatments will need to be scheduled from time to time. E.g. Flea treatments need to be scheduled every 30 days for dogs and cats (set 1 time and is perpetual), all dogs get specific shots within 7 days of their intake date or maybe a specific animal needs to be assigned medicines XY and Z 3 times per day for 7 days.
I kind of have an idea of how to break things down to be able to store them in the DB, and then create VBA logic on them, but I am not able to truly wrap my brain around it and come up with a DB structure that I can then use to create logic on.
I figure it will be [scheduleProcedureID] (PK), [Treatment Type Code] (FK), [target] (animalID, cats, dogs, all) but from there I cannot figure out whether to store a frequency, a repeat pattern a duration or what combination it would be. Should I maybe store it as [perDay], [repeatFrequency], [totalTreatments] (continuous / fixed num).
I am sure I an come up with some VBA to determine who needs what once I have the schedule setup. I want them to be able to (as non computer folks) add a treatment, set it's time/frequency/duration, and assign it to either all cats, all dogs, all animals. Some things are going to be a specific 1 time (or multi-time) treatment and others are just in the schedule. e.g. flea treatments, heartworm protections, all dogs coming in must get parvo and bordetella immediately. Cats must receive med1 and med2 right away (if they meet qualifications X and Y) and then again 2 weeks later.
So that is my dilemma. I am not asking anyone to do it for me, and it is a complicated (in my opinion) project. I am proficient at MS access and am new to VBA, but am rocking and rolling creating custom code. I understand how things work, just may not be the most optimum.
Thanks in advance to all who take time to read and offer advice.
Nate