What exactly do you think this code does?
Code:
If rstLibraryItem("Status") = "Checked Out" Then
MsgBox " " & rstLibraryItem("Status")
Else
MsgBox "" & rstLibraryItem("Status")
Seems it says,
Code:
If the status of this book is "CheckedOut" then
Display "A message"
Else (if it is not "CheckedOut")
Display the same message
End If
that isn't what you want.
Figure out your logic, in plain English, before you start coding. From experience, coding while you're still trying to figure out what you are trying to do, is a strategy for frustration.
Code:
If BookCheckedOut is True
do process to inform user book is not available
Else
do process to check out this book for this user
End