C
Chris
Hi
I've got two comboboxes - one filtering the other. I would like the
filtered combo boxs' contents to be in Alphabetaical order.
Private Sub cboCreditor_AfterUpdate()
Dim strbranch As String
strbranch = "SELECT
[tblcreditoraddresses].[creditoraddressid],[tblcreditoraddresses].[creditorn
ameid], [tblcreditoraddresses].[creditorbranch]" & _
"FROM [tblcreditoraddresses] " & _
"WHERE [creditorNameid] = " & Me.cbocreditor.Value
Me.cbocredbranch.RowSource = strbranch
Me.cbocredbranch.Requery
I'm trying to add; ORDER By [creditorbranch], after the where clause but it
keeps giving me error messages;
compile error: Line number or label or statement or end of statement
Help
I've got two comboboxes - one filtering the other. I would like the
filtered combo boxs' contents to be in Alphabetaical order.
Private Sub cboCreditor_AfterUpdate()
Dim strbranch As String
strbranch = "SELECT
[tblcreditoraddresses].[creditoraddressid],[tblcreditoraddresses].[creditorn
ameid], [tblcreditoraddresses].[creditorbranch]" & _
"FROM [tblcreditoraddresses] " & _
"WHERE [creditorNameid] = " & Me.cbocreditor.Value
Me.cbocredbranch.RowSource = strbranch
Me.cbocredbranch.Requery
I'm trying to add; ORDER By [creditorbranch], after the where clause but it
keeps giving me error messages;
compile error: Line number or label or statement or end of statement
Help