In wanting to simply test some code, I can't even get "Debug" to "Run to Cursor" when placing the cursor at the "End Sub" statement. What would block that action?
Code:
Private Sub TestingOnly(Cancel As Integer)
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
' Sub-Report RecordSource will automatically get the records corresponding to the "New" and
' "Renewal". However, we need to get the count of each for the main report and calculate
' the corresponding dollar amount.
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Dim intNoN As Integer
intNoN = PCCodeCount("N", "01/21/2016")
End Sub
Public Function PCCodeCount(ChrCode As String, PerDate As Date)
PCCodeCount = DCount("[PCCode]", "tblMembers", "([DOPmt] > #" & PerDate & "#)")
End Function