Dear Bob
I hope you don't think this is too impertinent of me but you may be the man to help with this database problem. A different database! Hopefully you won't mind me asking.
Here's the scenario. I have constructed a library system. It works well and the users are happy with it, but recently we discovered a problem with books not being returned and other books being borrowed by the sme student.
The borrowing process works thus: When the user selects a book, on the [MainSearchScreen] the [StudentID] is entered by scanning the barcode on their library ticket and the BookID and StudentID are created in the [BorrowTbl]. These details remain there until the book is returned and the borrow details deleted.
However there is no way to ascertain of the student already has a book on loan at the point of borrowing therefore, in theory at least, he or she can borrow an unlimited number of books without returning any of them, as long as no one recorgnises them! They will flag up as overdue at some point, but by then it's too late. The librarian is pulling her hair out as the younger kids are very forgetful when it comes to returning books and consequently they are not avaiable for any other user.
What I would like to know is, is it possible to run some code, at the point of entering the [MainSearchScreen]![StudentID] so that it scans the records in the [BorrowTbl] and flags up [StudentID]>1? If yes, then the process should be halted and a message appears to advise that the stuent already has at least one other book currently on loan, with if possible, the number of books currently on loan, and the option to override this block if needed.
So, Msg "This User Currently Has X number of books On-Loan"
"Cancel This Request Y or N?"
If "Yes" Request to borrow is denied and nothing can progress
If "No" allow the request to progress as normal.
If the user does nt have an other books on loan, the request proceeds as normal with no message.
Anyway Bob, if you can help, here are the instructions for entering a new record:
1. On the opening Switchboard, select 'Library Functions'
2. Select 'English Language Books'
3. To the right of the Main Screen in each Book record, there is a box ID No. Enter the number 1339 in any of the corresponding books and press enter. The book will flag up On-Loan. it is now in the [BorrowTbl].
4. When the book is returned, the user clicks the Book Return button and the record is deleted from the [BorrowTbl]
I have attached a copy of the system in the hope that you might have the solution
Many thanks
Rob