Hi,
I have the following code, that I am testing for failure, which tries to retrieve a user's personnel number:

I thought the IF statement would be enough for handling errors but I get this error message when I run the code:

I'm struggling to see what to do next. Would any of you smart people have any ideas?
Thanks