Quick syntax help in a combo box
- From: Tal <Tal@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Jul 2008 07:20:02 -0700
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
.
- Follow-Ups:
- Re: Quick syntax help in a combo box
- From: bcap
- Re: Quick syntax help in a combo box
- Prev by Date: RE: Automatic Dlookup update
- Next by Date: RE: Browse window in form.
- Previous by thread: Open read only form to new record
- Next by thread: Re: Quick syntax help in a combo box
- Index(es):
Relevant Pages
|