SyntaxFix
Write A Post
Hire A Developer
Questions
Use Val(txtPrice.text)
I would also allow only number and the dot char by inserting some validation code in the key press event of the price text box.