BiggyRat wrote:it now says it can't find Client.CDX or Details.cdx, though BOTH are in the same folder as the report. Any ideas please?
I have never used ReportPro in "designer" mode, only for hardnoded reports. I see your .RPT contains "C:CAVO28Bin<filename>.DBF / .CDX
Are you sure that is where the .DBF/CDX files are located?
______________________
Johan Nel
Boshof, South Africa
Here is my index re-indexing code. Is there anything in here that's wrong perhaps? I've left all my previous attempts visible to show my working out...
As expressions they test OK, QQout say they create ok, yet it is these two lines (one in each index of course) stopping the report from opening. What have I done wrong please?
BiggyRat wrote:OK I worked it out. These two lines are causing it, but WHY?
oServer:CreateOrder("CLCodeName", "Client", "AllTrim(CLIENT->ClCode) + Space(1) + Alltrim(CLIENT->ClName)" )
AND
oServer:CreateOrder("CLCodeName", "Details", "AllTrim(DETAILS->CLCODE) + Space(1) + AllTrim(DETAILS->CLNAME)" )
As expressions they test OK, QQout say they create ok, yet it is these two lines (one in each index of course) stopping the report from opening. What have I done wrong please?
Think you just need to drop the "CLIENT->" and "DETAILS->" from your expressions. Rather use "FIELD->" or "_FIELD->", sorry have not done DBF in ages so you need to check those two out.
______________________
Johan Nel
Boshof, South Africa
BiggyRat wrote:Hmmm OK, thank you very much Johan.
Hi Jeff,
Further to my previous response, remember you cannot guarantee that your DBF will always be referenced/aliased as "Client", your index expressions are hard-coded to a specific alias. Let us know if that solves the issue.
______________________
Johan Nel
Boshof, South Africa
OK, thank you Robert and Johan,that was something I wasn't aware of with the Aliases in ReportPro. I will certainly keep that in mind. In the meantime, yes, your solution Johan seems to have done the trick. The report now opens every time without error. Thanks again.