Answered
Hi everybody,
I have a form with an "office use only" part and from discussions on this forum I figured out how to make a button with a password that switches certain fields from 'open' to 'readonly' and throws an error message if PW is incorrect.
BUT, it throws the same 'invalid PW' message when I press cancel.
I tried adding a
"if (btn != '')"
or "if (btn != 0)"
or "if (btn!= 2)" (I read somewhere the return value for cancel is 2 ?)
But none of those worked. What can I do so that the dialog box just closes when 'cancel' is pressed?
TIA,
Zeynep
George