Where clause in syncronized combo boxes

K

Krisse

cboFacility is a text field, and the following doesn't
but " " around the results of Me.cboFacility into the data
source of cboBasepath. If I go there and put the " " in,
my second combo box works.

Any ideas? THANKS!

Private Sub cboFacility_AfterUpdate()

Me.cboBasepath.RowSource = "SELECT Basepath FROM
tblFacilityBasepath " & _
"WHERE FacilityCode = " & "" & Me.cboFacility & ""

Me.cboBasepath = Me.cboBasepath.ItemData(0)

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top