Code: Select all
rsFunds.Filter = "[PolSalesNo] = " & SalesNo & " AND [DateIn] = #" & Format(ThisDateIn, "mm/dd/yyyy") & "#"
Set rsCopyFunds = rsFunds.OpenRecordset
rsCopyFunds.MoveLast
For the case when ThisDateIn is Null or 0, there are actually 11 records (by manually counting them), but I get a "No current record" error at the .MoveLast line.
Anyone know how I can filter?