'Return' statement in a Function, Get, or Operator must return a value

Return statements must be used to return a value to a calling procedure. You cannot use Return statements by themselves to control program flow.

Error ID: BC30654

To correct this error

  1. Specify a value that the function or procedure can return.

  2. Use the End statement to cause the program to exit the current procedure.

See Also

Reference

Return Statement (Visual Basic)

End (Visual Basic)