Forms Interconnection

Status
Not open for further replies.

jues

New Member
Joined
Mar 17, 2023
Messages
15
Office Version
  1. 365
Platform
  1. Windows
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.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Duplicate to: Interconexión de Formularios

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 1
Status
Not open for further replies.

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top