I have 2 forms and 1 query. The sequence of events is frmLogin check password in queryA, if it matches it opens frmDataEntry. Somehow it works! But now I see that the passwords are storing verse comparing.
This is the code I have on the command button, of FormLogin
Dim stDocName As String
stDocName = "tblUsers Query"
'DoCmd.OpenQuery stDocName, acNormal, acReadOnly
DoCmd.OpenForm "frmDataEntry"
DoCmd.OpenQuery "tblUsers Query", acViewNormal, acReadOnly
This is the code I have on the command button, of FormLogin
Dim stDocName As String
stDocName = "tblUsers Query"
'DoCmd.OpenQuery stDocName, acNormal, acReadOnly
DoCmd.OpenForm "frmDataEntry"
DoCmd.OpenQuery "tblUsers Query", acViewNormal, acReadOnly