L
Luke Bellamy
Hi,
When a user closes a particular form (either by my "close" botton or
the 'x' in the top right corner) I have a question asking them are they sure
these settings are correct. If they choose No I wish to stop closing the
form.
I've found in my vb code if I use:
if varConfirm = vbNo then
Cancel = true
exit sub
end if
It does not seem to work and the form still closes when selecting No (for
the record
it is really going into this "if... then" block). But the funny thing is I
have another form
that does a similar thing it seems to work for. Anyone have any ideas on why
it wouldn't work under certain circumstances or know of a better way?
Thankyou
When a user closes a particular form (either by my "close" botton or
the 'x' in the top right corner) I have a question asking them are they sure
these settings are correct. If they choose No I wish to stop closing the
form.
I've found in my vb code if I use:
if varConfirm = vbNo then
Cancel = true
exit sub
end if
It does not seem to work and the form still closes when selecting No (for
the record
it is really going into this "if... then" block). But the funny thing is I
have another form
that does a similar thing it seems to work for. Anyone have any ideas on why
it wouldn't work under certain circumstances or know of a better way?
Thankyou