T
Tal
I have a combo box that is defined by the selection in another combo box.
I need to order the data based on a date field.
So, Order by [tblFunds].[dtFundDate] DESC
I can't seem to get the right syntax.
Any help is appreciated.
Here is my current code:
Private Sub cboSelectCampaign_AfterUpdate()
Dim SFundSource As String
SFundSource = "SELECT [tblFunds].[keyFund], [tblFunds].[txtFundName] " & _
"FROM tblFunds " & _
"WHERE [tblFunds].[keyCampaign] = " &
Me.cboSelectCampaign.Value
Me.cboSelectFund.RowSource = SFundSource
Me.cboSelectFund.Requery
End Sub
I need to order the data based on a date field.
So, Order by [tblFunds].[dtFundDate] DESC
I can't seem to get the right syntax.
Any help is appreciated.
Here is my current code:
Private Sub cboSelectCampaign_AfterUpdate()
Dim SFundSource As String
SFundSource = "SELECT [tblFunds].[keyFund], [tblFunds].[txtFundName] " & _
"FROM tblFunds " & _
"WHERE [tblFunds].[keyCampaign] = " &
Me.cboSelectCampaign.Value
Me.cboSelectFund.RowSource = SFundSource
Me.cboSelectFund.Requery
End Sub