Hi,
I search for project when username & password in TB1,TB2 are error then should close the file totally after three tries without close others files are open , I would when run the form should not show the sheets if username & password in TB1,TB2 are corrct then just show one sheet is the first contains button to show the form and hide the others .
I see some codes if username & password are error and try to open the file again then will show sheets I don't want this way .
always show the form without show contents file when try to write username & password in TB1,TB2 until will be correct the entiries .
thanks in advanced
I search for project when username & password in TB1,TB2 are error then should close the file totally after three tries without close others files are open , I would when run the form should not show the sheets if username & password in TB1,TB2 are corrct then just show one sheet is the first contains button to show the form and hide the others .
I see some codes if username & password are error and try to open the file again then will show sheets I don't want this way .
always show the form without show contents file when try to write username & password in TB1,TB2 until will be correct the entiries .
thanks in advanced