G
gator
Can someone help me with the correct syntax of the code below. I am trying
to divide one line of code into two lines by using the &_
I can't seem to get any syntax to work.
Private Sub cmbAccount_AfterUpdate()
With Me.DepositsSubform.Form
.Filter = "Account = '" & Me.cmbAccount & "'" And "FundID = '" &
Me.cmbFund & "'" And " &_"
"Month([Date])='" & Me.cmbMonth & "'" And "Year([Date])='" & Me.cmbYear
& "'""
.FilterOn = True
End With
End Sub
to divide one line of code into two lines by using the &_
I can't seem to get any syntax to work.
Private Sub cmbAccount_AfterUpdate()
With Me.DepositsSubform.Form
.Filter = "Account = '" & Me.cmbAccount & "'" And "FundID = '" &
Me.cmbFund & "'" And " &_"
"Month([Date])='" & Me.cmbMonth & "'" And "Year([Date])='" & Me.cmbYear
& "'""
.FilterOn = True
End With
End Sub