greetings friends
I have a small project with two specific forms at the time of opening the file, the Login Form (fmrlogin) appears in which I must enter the predetermined User (TxtUSER) and Password (TxtCLAVE). When I click on the Accept Button (CmdACCEPTAR), the Dates Form (fmrdates) appears in the which I must enter other information, however, if I accidentally press the Accept Button (CmdACCEPTAR) whether the User (TxtUSER) and Password (TxtCLAVE) fields are empty, partially filled or with the wrong User and Password, the Dates Form appears (fmrdates). ) which should only appear if and only if the Username and Password are valid.
Specifically, what I require is that you help me with the missing lines of code so that if and only if the User (TxtUSER) and the Password (TxtCLAVE) are valid, this is the only way that the Dates Form (fmrfechas) is displayed, then I leave you the macro with which the Form is currently called.
Private Sub CmdACEPTAR_Click()
Call Module1.BotonAceptar
Fmrfechas.Show
End Sub
I will be very grateful for any help you can give me.
I have a small project with two specific forms at the time of opening the file, the Login Form (fmrlogin) appears in which I must enter the predetermined User (TxtUSER) and Password (TxtCLAVE). When I click on the Accept Button (CmdACCEPTAR), the Dates Form (fmrdates) appears in the which I must enter other information, however, if I accidentally press the Accept Button (CmdACCEPTAR) whether the User (TxtUSER) and Password (TxtCLAVE) fields are empty, partially filled or with the wrong User and Password, the Dates Form appears (fmrdates). ) which should only appear if and only if the Username and Password are valid.
Specifically, what I require is that you help me with the missing lines of code so that if and only if the User (TxtUSER) and the Password (TxtCLAVE) are valid, this is the only way that the Dates Form (fmrfechas) is displayed, then I leave you the macro with which the Form is currently called.
Private Sub CmdACEPTAR_Click()
Call Module1.BotonAceptar
Fmrfechas.Show
End Sub
I will be very grateful for any help you can give me.