PhillipsTCasey
New member
- Local time
- Today, 08:10
- Joined
- Mar 8, 2010
- Messages
- 8
I am working on a Kennel Database and I am currently working on the Grooming Appointment section. I am having problems giving the user a warning when they are about to overbook for the day.
When you are making an appointment you see sub-form that contains a preview of the day the appointment is for.
I currently have each appointment assigned a block value. This ranges from 1 - 3 depending on the type of dog being groomed. When the sub-form has data is sums the block values and I can determine if it is over.
The only problem is if there are no appointments for that day the sum returns a #Error value. I have tried http://allenbrowne.com/RecordCountError.html that tip but it did not work. I still get the error if there is no data.
Is there anyway around this #Error to make it show as 0?
I have thought about doing it all in the VBA Editor but I do not know how to detect if a subform has records and I also do not know how to sum a column in subform in code. I feel using code would be a more efficient method but I simply do not know how to do it.
When you are making an appointment you see sub-form that contains a preview of the day the appointment is for.
I currently have each appointment assigned a block value. This ranges from 1 - 3 depending on the type of dog being groomed. When the sub-form has data is sums the block values and I can determine if it is over.
The only problem is if there are no appointments for that day the sum returns a #Error value. I have tried http://allenbrowne.com/RecordCountError.html that tip but it did not work. I still get the error if there is no data.
Is there anyway around this #Error to make it show as 0?
I have thought about doing it all in the VBA Editor but I do not know how to detect if a subform has records and I also do not know how to sum a column in subform in code. I feel using code would be a more efficient method but I simply do not know how to do it.