Well I will have a report with the loan given, taken, unreturned books, etc. I already have the query (parameter) prepared.:cool: So what I want is for the report to show the fine of each late book and no fine for books not late. I tried using the same function but it doesn't seem to work.:confused: