meenctg
Learn24bd
- Local time
- Tomorrow, 04:47
- Joined
- May 8, 2012
- Messages
- 133
I have 3 form that are login, welcomeFrm, wrongFrm when i open my db it starts with login form. login form has a text box for put password and a command box. i made a program in VB for valid password open welcomeFrm form and invalid password for wrongFrm form. But when i put password and enter it shows wrongFrm for valid and invalid password . please help me any one if i have any mistake in my VB code and suggest me what will i do...........
Private Sub Command2_Enter()
Dim valita As Variant // valita is my text box name
valita = Val(Text)
If valita = "123" Then // 123 is my fixed password
DoCmd.OpenForm "welcomeFrm"
Else
DoCmd.OpenForm "wrongFrm"
End If
End Sub
Private Sub Command2_Enter()
Dim valita As Variant // valita is my text box name
valita = Val(Text)
If valita = "123" Then // 123 is my fixed password
DoCmd.OpenForm "welcomeFrm"
Else
DoCmd.OpenForm "wrongFrm"
End If
End Sub