alvechurchdata
Programmer
I've fixed a reporting problem by adding a BROWSE statement. It's a kludge and I want to fix it properly.
There's a query which builds a cursor. I check _TALLY immediately and run the report if any records have been retrieved. This technique works everywhere else in the app but in this one situation I get an error message telling me that field qty can't be found.
Field qty is there in the SQL and it was there when I single-stepped. I put a BROWSE statement immediately before the REPORT FORM to convince myself that field qty was still there in the Exe.
The report now runs.
Take out the one word BROWSE, rebuild the exe, and the report doesn't run.
Put it back in, rebuild the exe, and the report runs.
The client's happy (ish) because their report runs but I'm not happy with the solution. Does anyone have any idea why adding a BROWSE is solving this problem? It's not a timing problem because a MESSAGEBOX or WAIT WINDOW doesn't help.
Geoff Franklin
There's a query which builds a cursor. I check _TALLY immediately and run the report if any records have been retrieved. This technique works everywhere else in the app but in this one situation I get an error message telling me that field qty can't be found.
Field qty is there in the SQL and it was there when I single-stepped. I put a BROWSE statement immediately before the REPORT FORM to convince myself that field qty was still there in the Exe.
The report now runs.
Take out the one word BROWSE, rebuild the exe, and the report doesn't run.
Put it back in, rebuild the exe, and the report runs.
The client's happy (ish) because their report runs but I'm not happy with the solution. Does anyone have any idea why adding a BROWSE is solving this problem? It's not a timing problem because a MESSAGEBOX or WAIT WINDOW doesn't help.
Geoff Franklin