how can a report be run if it can't be complied

Helo!

Currently i'm working on some reports and on one of them i encountered a strange problem .... report is working however when i go in design mode and try to compile it, it doesn't want to. I figured out that the problem is in the following line:

DtldCustLedgEntry.SETRANGE("Customer No.",Customer."No.");

... Customer .. it's not a variable so it can't be addressed the way it is. Now what i did was:

DtldCustLedgEntry.SETRANGE("Customer No.","Customer No.");

However if i correct it this way i can compile it but it doesn't work properly any more.

How could anyone who had made this report make it run without compiling it?

thnx for all the answers

lp prosen
Parents
No Data
Reply
  • quote:
    Originally posted by lordslayer

    DtldCustLedgEntry.SETRANGE("Customer No.",Customer."No.");

    ... Customer .. it's not a variable so it can't be addressed the way it is. Now what i did was:

    DtldCustLedgEntry.SETRANGE("Customer No.","Customer No.");


    Are you sure that Customer."No." is not a variable?? did you check what dataitems were used also? Something that sometimes happens also is on custom changes when you're working on a database and you use certain fields/tables that are not standard and you move the object to a different database where the same numbers are used for totally different fields/tables, editing the report can show really "funny" things....
Children
No Data
Related
Recommended