>I'm missing something using the inputbox, reading the help, it says that pressing the cancel, esc or when the timeout happens, the cdefaultvalue will be returned. In my case, I'm getting a blank value when the cancel button is pressed.
>
>
>lcCarrier=[KIRK INSURANCE COMPANY]
>lcPolicy=[1234567]
>lcUpdateValue=INPUTBOX([Add/Edit Policy Number for ]+;
lcCarrier,[Update Policy Data],lcPolicy,20000,lcPolicy)
>
>
>
>Thanks for any help
Kirk,
In my version of help it says :
"Remarks
The dialog box displays an edit box and OK and Cancel buttons. The OK button always returns the contents of the text box. The Cancel button always returns an empty string. A timeout will return the specified text in cTimeoutValue or an empty string if cTimeoutValue is not passed."
If 'Cancel' returned the default value then there wouldn't be a way of detecting user pressed 'Cancel'
Cetin