I
Ivan Starr
Hello, thanks for helping.
I have an unbound combobox in a subform whose rows I would like to filter by
criteria in another control during the OnCurrent() event. the code is as
follows:
If txtJN <> Null Then
cboSubmittalNumber.RowSource = "select [Submittals].[LoringsSubmittalNumber]
from [Submittals] where ([Submittals].[JN] = '" _
+ txtJN.Value + "');"
End If
where txtJN is the control I wish to filter the cboSubmittalNumber control's
rows on. It selects all records as if there was no WHERE clause. Funny
thing is, I thought it was working, but then it stopped filtering for some
reason. And now I've been going nuts for 3 hours trying to figure out why.
Does anyone have any idea?
Thanks,
Ivan
I have an unbound combobox in a subform whose rows I would like to filter by
criteria in another control during the OnCurrent() event. the code is as
follows:
If txtJN <> Null Then
cboSubmittalNumber.RowSource = "select [Submittals].[LoringsSubmittalNumber]
from [Submittals] where ([Submittals].[JN] = '" _
+ txtJN.Value + "');"
End If
where txtJN is the control I wish to filter the cboSubmittalNumber control's
rows on. It selects all records as if there was no WHERE clause. Funny
thing is, I thought it was working, but then it stopped filtering for some
reason. And now I've been going nuts for 3 hours trying to figure out why.
Does anyone have any idea?
Thanks,
Ivan