Location address

Dear All,

I have a problem actually my client want that in their service report i hv print their original address and in their general ledger report i print their location address…

For that i use this code

loc.RESET;
loc.GET;
loc.SETRANGE(Code,“Location Code”);
IF loc.FINDFIRST THEN.

But it raise an error location code does not exists .but
in their G/L Entry table location code is exists.

can any one solve this issue

Hi,

The error is from the loc.GET; statement. Look up the help on the GET function, you need to pass in the primary key

i.e.

IF loc.GET(“Location Code”) THEN