Skip to Content
0
Former Member
Feb 15, 2011 at 04:08 PM

Field count does not match

59 Views

I do the following:

  • Load a report document. (Subreport1.Table1.Fields.Count = 38)

  • Verify the database (Subreport1.Table1.Fields.Count = 34)

  • Save the report document (Subreport1.Table1.Fields.Count = 34)

  • Reload the saved report document (Subreport1.Table1.Fields.Count = 38)

"Table1" is a stored procedure. The correct number of fields is 38, but when the database verification is done, four of them are not being populated into the "Fields" collection visible in the code, but when it is saved, it is saving it with all 38 fields. The lack of the four fields is breaking the subreport parameter linking, and making it appear that there were fields deleted, which is not the case.

Why are these four fields not visible in the fields collection after a verification (the're obviously known since they are saved to the .rpt file)?