Hi,
I am confused ... i have a report where the detail section uses a procedure.
basically, the part of the code I am getting a Run-Time error '3021'. No Current Record
however, i know there is data. There are 13 records of which has multiple detail records.
So I go into the Design and go to my record source and preview that to verify. I have a total of 42 detail records.
So why would I get the run-time error '3021' No Current Record?
I am confused ... i have a report where the detail section uses a procedure.
basically, the part of the code I am getting a Run-Time error '3021'. No Current Record
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim strSQL As String
Dim db As DAO.Database
Dim rs As DAO.Recordset
etc ...
Set db = CurrentDb
Set rs = db.OpenRecordset(strSQL)
With rs
-> errors at: .MoveFirst
Do Until .EOF
So I go into the Design and go to my record source and preview that to verify. I have a total of 42 detail records.
So why would I get the run-time error '3021' No Current Record?