heidihunter
14th August 2003, 13:41
Hi,
I'm writing a function to return a value for use in a report that looks basically like this:
function long func()
{
long returnval
returnval= 0
select table1.fld1
where (table1.fld2=val AND table1.fld3= table2.fld)
selectdo
... do something with returnval ...
endselect
...
}
On compiling I get the error "Unknown column table2.fld". All the fields mentioned are declared as input fields for the report, and table2.fld is used in other parts with no problem. Do I need another kind of declaration here?
Thanks,
Heidi
I'm writing a function to return a value for use in a report that looks basically like this:
function long func()
{
long returnval
returnval= 0
select table1.fld1
where (table1.fld2=val AND table1.fld3= table2.fld)
selectdo
... do something with returnval ...
endselect
...
}
On compiling I get the error "Unknown column table2.fld". All the fields mentioned are declared as input fields for the report, and table2.fld is used in other parts with no problem. Do I need another kind of declaration here?
Thanks,
Heidi