Click to See Complete Forum and Search --> : Crystal Reports


iacchus
January 25th, 2000, 06:43 PM
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

jhemphill
January 26th, 2000, 11:09 AM
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?