The comparison here
If ("Dept_id") = False Then
Looks odd. You're trying to compare text with a boolean value.
Based on the commented code you're trying to find out if the execution has succeeded. Does the procedure return the new department value. If so, store it in a variable and using error handling (try...catch) ensure that the execution succeeds.
I believe that going through this tutorial might help you:
Properly executing database operations[
^]