G
Guest
I'm sorry for the repost but I'm desparate for help.
With the code below I'm trying to filter a combo box on a sub form based on a
selection made on a combo box from the main form. Main form cbo is
cboOPmedsClass and sform cbo is cboOPmedsLU
I'm getting a complile error "Sub or function not defined" on the line with
the
* below. (* placed to identify where the break is.) I'm not sure why this
happens.
Please Help. I have to deploy my app on Monday. Thanks in advance, Rob
***********************************************
Private Sub cboOPmedsClass_AfterUpdate()
Me.fsubOPmeds!cboOPmedsLU = Null
If IsNull(Me.cboOPmedsClass) Then
Me.fsubOPmeds!cboOPmedsLU.Enabled = False
Else
Me.fsubOPmeds!cboOPmedsLU.Enabled = True
Me.fsubOPmeds!cboOPmedsLU.RowSource =
ReplaceWhereClause(Me.fsubOPmeds!cboOPmedsLU.RowSource, _
"Where fldClassification = '" & Me!cboOPmedsClass & "'")
Me.fsubOPmeds!cboPOmedsLU.Requery
End If
End Sub
With the code below I'm trying to filter a combo box on a sub form based on a
selection made on a combo box from the main form. Main form cbo is
cboOPmedsClass and sform cbo is cboOPmedsLU
I'm getting a complile error "Sub or function not defined" on the line with
the
* below. (* placed to identify where the break is.) I'm not sure why this
happens.
Please Help. I have to deploy my app on Monday. Thanks in advance, Rob
***********************************************
Private Sub cboOPmedsClass_AfterUpdate()
Me.fsubOPmeds!cboOPmedsLU = Null
If IsNull(Me.cboOPmedsClass) Then
Me.fsubOPmeds!cboOPmedsLU.Enabled = False
Else
Me.fsubOPmeds!cboOPmedsLU.Enabled = True
Me.fsubOPmeds!cboOPmedsLU.RowSource =
ReplaceWhereClause(Me.fsubOPmeds!cboOPmedsLU.RowSource, _
"Where fldClassification = '" & Me!cboOPmedsClass & "'")
Me.fsubOPmeds!cboPOmedsLU.Requery
End If
End Sub