I'm just playing round with this - will probably adopt a db based solution, but pasting the code in , as is -
I get an error
"Function doesn't return a value on all code paths. A null reference exception could occur"
Does the case else not satisfy this, I have done a bit of searching but I'm obviously missing something.
THanks