E
Eric G
I have a password form that checks if the user password is correct and
if so, opens a checklist form as follows:
Private Sub passOK_Click()
On Error GoTo Err_passOK_Click
If Not IsNull(Me!cboUserID) Then
If Me!txtPassword = Me!cboUserID.Column(1) Then
DoCmd.OpenForm "frmCheckList"
I have a query named StatTeachRanked with two fields:
CountOf#Det and TeacherID (UserID)
Typical results of the select query might be,
4 EGR
or 3 ABO
or 2 JDI
I would like to add code so that if the UserID keyed in on the
password form is used as the TeacherID (UserID) in the StatTeachRanked
query with a result such that the CountOf#Det is 4 or greater, then
DoCmd.OpenForm "frmCheckList" would not executed above, and another
command would be run.
Guidance in setting this up would be much appreciated.
TIA Eric (A2K)
if so, opens a checklist form as follows:
Private Sub passOK_Click()
On Error GoTo Err_passOK_Click
If Not IsNull(Me!cboUserID) Then
If Me!txtPassword = Me!cboUserID.Column(1) Then
DoCmd.OpenForm "frmCheckList"
I have a query named StatTeachRanked with two fields:
CountOf#Det and TeacherID (UserID)
Typical results of the select query might be,
4 EGR
or 3 ABO
or 2 JDI
I would like to add code so that if the UserID keyed in on the
password form is used as the TeacherID (UserID) in the StatTeachRanked
query with a result such that the CountOf#Det is 4 or greater, then
DoCmd.OpenForm "frmCheckList" would not executed above, and another
command would be run.
Guidance in setting this up would be much appreciated.
TIA Eric (A2K)