-
Crystal Reports
DefFileCreated is an integer variable. The function returns a 0 or a 1. If the file is created successfully (and it is) it goes on and does the second part.
DefFileCreated = CreateFieldDefFile(mRecordset,
"C:\WorkingArea\ContactNotes.ttx", 1)
This second line gives me a runtime error '9' Subscript out of range.
Report.Database.SetDataSource mRecordset, 3, 1
-
Re: Crystal Reports
The above message is a post sent for me by a friend. I am trying to fill a CR report with dynamic data. There is no Field Definition File, or database for the report to attach to until run-time. Therefore, I am trying to set a ADODB.Recordset object as the data source at runtime. Can anyone tell me what I am doing wrong?