Inputbox - exit routine

S

SysAccountant

I have followed the general advice for masking a password , i.e create a
modal form and set the textbox property to "Password".

What I am attempting to do is allow the user a set number of attempts before
the database shuts done.I have done this using an inputbox - assign the
return value to another variable and place the counter in a "Do ... Loop".

However I am finding it difficult to emulate this functionality with the
modal form.

Can anyone help me please?


sysAccountant
 
N

Nikos Yannacopoulos

Don't use a loop, use a hidden textbox on the form to store the number
of times the OK button is clicked, by incrementing by one each time, and
aborting if the value stored exceeds the limit.

HTH,
Nikos
 
S

SysAccountant

Nikos

Thanks!

Your suggestion worked.

Sorry about the long delay in responding - I only just implemented your
solution yesterday

Regards


sysAccountant
 
Top