<???>


The code is correct and worked fine.
Where did you put your code.
I've created a form with a label and a commandbutton
In the command1.click I put your code.
No problems
You are running the program I hope, and did not click
in the form by creation, because than it gives no results. (joking but it happens)


Cheers
Ray