B
babs
I am trying to filter a drop-down list for job # after the Client id drop
down is selected. Right now it is working with the code below. However
there can be the same job # listed multiple times for a given Client. For
example there can be three records with job 123. On the drop down list with
the code below I see all three job 123 listed - I would like it to show up
only ONE time on the drop down.
Please let me know what I need to add to the code to be able to do this.
Private Sub cboClientId_AfterUpdate()
Dim sSQL As String
'This function sets the RowSource of ClientId, based on the value selected
in ClientId
sSQL = "SELECT Job, Taxex, Clientid " & "FROM tblQUOTEJOE " & "WHERE
ClientId = """ & Me.cboClientId & """ " & "ORDER BY Job"
Me.cbojob.RowSource = sSQL
Thanks,
Barb
down is selected. Right now it is working with the code below. However
there can be the same job # listed multiple times for a given Client. For
example there can be three records with job 123. On the drop down list with
the code below I see all three job 123 listed - I would like it to show up
only ONE time on the drop down.
Please let me know what I need to add to the code to be able to do this.
Private Sub cboClientId_AfterUpdate()
Dim sSQL As String
'This function sets the RowSource of ClientId, based on the value selected
in ClientId
sSQL = "SELECT Job, Taxex, Clientid " & "FROM tblQUOTEJOE " & "WHERE
ClientId = """ & Me.cboClientId & """ " & "ORDER BY Job"
Me.cbojob.RowSource = sSQL
Thanks,
Barb