Hi
Is there any way in which i may retrieve data from within a formula. Wt i mean is that in a formula i want to write a SELECT statement and open a recorset kind of object and after manipulating data in the recordset i want to return the results by the formula.
i.e something like which we do in Visual Basic code but in formula.
like
rescordset.Open("Select * from TblSomeTable"
;
while not (rescordset.BOF AND rescordset.EOF)
DoSomething with recordset
RecordSet.MoveNext();
end while;
Actually my problem is something like getting a list of employees seperated by a commas that belong to a against a particular DepartMent.
i.e
My report would be like
DEPARTMENT NAME EMPLOYEES
------------------------------------
Dept1 Empl1; Empl2; Emply3; Emply4
Dept2 Empl11; Empl2; Emply33; Emply44
Dept3 Empl31; Empl32; Emply3; Emply4
Dept4 Empl1; Empl2; Emply3; Emply4
Dept5 Empl1; Empl2; Emply3; Emply4
So my query returns like Department id's and names then i want to get Employee names against that department using a formula. This is only an example for my problem nature not exactly my problem. So if any body has a solution so plz let me know.
Thanks in advance
Is there any way in which i may retrieve data from within a formula. Wt i mean is that in a formula i want to write a SELECT statement and open a recorset kind of object and after manipulating data in the recordset i want to return the results by the formula.
i.e something like which we do in Visual Basic code but in formula.
like
rescordset.Open("Select * from TblSomeTable"
while not (rescordset.BOF AND rescordset.EOF)
DoSomething with recordset
RecordSet.MoveNext();
end while;
Actually my problem is something like getting a list of employees seperated by a commas that belong to a against a particular DepartMent.
i.e
My report would be like
DEPARTMENT NAME EMPLOYEES
------------------------------------
Dept1 Empl1; Empl2; Emply3; Emply4
Dept2 Empl11; Empl2; Emply33; Emply44
Dept3 Empl31; Empl32; Emply3; Emply4
Dept4 Empl1; Empl2; Emply3; Emply4
Dept5 Empl1; Empl2; Emply3; Emply4
So my query returns like Department id's and names then i want to get Employee names against that department using a formula. This is only an example for my problem nature not exactly my problem. So if any body has a solution so plz let me know.
Thanks in advance