Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Index tag not found

Status
Not open for further replies.

Polly66

Programmer
Nov 3, 2001
42
AU

Hi everyone,

I have what would seem to be a ridiculous situation with the following simple report.

(I am new to VFP 9 reports, having always before styled my own with @ say)

I generated the report using the wizard, there is only one table, indexed on a single field, outside of the report. I am using an alias for the report layout as the actual file used will change. If I populate the alias the report works fine. But when I try to use actual data with only the structure of the alias present I get the error "Index tag is not found for cursor object cursor1".

What is particularly frustrating is that a similar report works, using exactly the same logic. I have inspected properties of both reports, over many hours but cannot detect anything that would make the difference.

Thanks if anyone can help.

Bill
 
I think the wizard generates its "own" indexes when you use it, i think it also names the index - so when you switch to the real talble the index is not there. Create your own index, point to it in the database environment - table- properties - data tab, and be sure the data in the report is refered to properly (table.fieldname 0r just fieldname) and it should work.
If the data is going to be generated each time the report it run, do it yourself before running the report, name it, then index it, and after the report delete it if you wish.
wjwjr
 

Hi White605,

Thanks, you put me on the right track. I don't normally use wizards, but for convenience went against my own judgement, and It cost me ten times the effort I thought I was saving.

Thank you for your time.

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top