Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input box cancel button

Status
Not open for further replies.

vaughn9

Technical User
Sep 23, 2001
183
When I click on cancel from my input box I am getting an error messagae. What can Iadd to the code below that would make my cancel button not give me an error message.

Code

dim amtmoney as currency

amtmoney= InputBox("Enter amount of money", "Money", "$")

Form2.Text2 = FormatCurrency(Val(amtmoney))
 
You've dimmed amtmoney as Currency - inputBox returns a string. Use a string variable to get the returned value, then do your conversion

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top