david.paton
Registered User.
- Local time
- Today, 04:27
- Joined
- Jun 26, 2013
- Messages
- 338
I have just thought of a problem when I was reviewing my db. I have a field called CarersAvailable within the table tblCarers. It is a yes/no field and at the moment it requires user input to change it. There is a field in the same table called CarersAuthorised#CareFor, which says how many children the carer is authorised to care for. The database is going to be split to allow multiple users to access it at the same time. I don’t have a great knowledge on sql or coding in general and I was wondering if it was possible to somehow make it so a child can’t be assigned to a carer if the number of children assigned to the carer is already equal to the CarersAuthorised#CareFor field and if the number of children assigned to the carer is equal to the CarersAuthorised#CareFor, the CarersAvailable field to change to No.
I do have a query called qryCarerAvailable, which the manager wanted to be able to search for carers that are available but because many people could access it at the same time, a carer may become unavailable and someone else check the db for availability before the original person has a chance to update the CarersAvailable field.
I hope I explained that well enough.
Thanks
Dave
I do have a query called qryCarerAvailable, which the manager wanted to be able to search for carers that are available but because many people could access it at the same time, a carer may become unavailable and someone else check the db for availability before the original person has a chance to update the CarersAvailable field.
I hope I explained that well enough.
Thanks
Dave