Hi,
I am wondering why the use of DoCmd with Where condition does not work, unless I add Datamod to it, then it will work?
If I use the code below to open a form from a subform, it will not take me to the student id as per sWhereClause:
If I use the code below, it does take me to the student id as per sWhereClause:
Anyone know why?
Thanks
I am wondering why the use of DoCmd with Where condition does not work, unless I add Datamod to it, then it will work?
If I use the code below to open a form from a subform, it will not take me to the student id as per sWhereClause:
Code:
sWhereClause = "[student_id] = """ & Me.student_id & """"
DoCmd.OpenForm "frmStudent", , , sWhereClause, , acWindowNormal
If I use the code below, it does take me to the student id as per sWhereClause:
Code:
sWhereClause = "[student_id] = """ & Me.student_id & """"
DoCmd.OpenForm "frmStudent", , , sWhereClause, acFormReadOnly, acWindowNormal
Anyone know why?
Thanks