Hi!
I have a rowsource for a listbox as hereunder.
The construct is to get a cursor for printing labels and printing a list holding that data.
cp.Etiket (red in code) is a logical field acting as flag wether or not to print labels.
WITHOUT the red part the construct is OK but with the red part an error occurs.
I don't know why.
Is this probably for I pass it after subqueries?
I don't believe for !ISNULL(cp.id) should give error than as well though?
Any suggestions?
-Bart
I have a rowsource for a listbox as hereunder.
The construct is to get a cursor for printing labels and printing a list holding that data.
cp.Etiket (red in code) is a logical field acting as flag wether or not to print labels.
WITHOUT the red part the construct is OK but with the red part an error occurs.
I don't know why.
Is this probably for I pass it after subqueries?
I don't believe for !ISNULL(cp.id) should give error than as well though?
Any suggestions?
-Bart
Code:
lcBoxNaam ='allt(cP.Achternaam) +", " + allt(cP.lstV_naam) + " " + allt(cP.TussenNaam) '
lcBoxAdres ='cP.straat'
lcBoxPlaats ='proper(cP.plaats)'
Regel1 ='cP.aanhef'
Regel2 ='allt(cP.lblV_naam) + " " + allt(cP.TussenNaam) + " " + allt(cP.Achternaam) '
Regel3 ='cP.straat'
Regel4 ='allt(cP.Postcode) + " " + allt(cP.Plaats) '
lstPostCode = 'allt(cP.Postcode)'
lstPlaats = 'allt(cP.Plaats)'
.lstAdres.rowsource=;
'select distinct ' + ;
lcBoxNaam + ' as boxNaam ,' + ;
lcBoxAdres + ' as boxAdres ,' + ;
lcBoxPlaats + ' as boxplaats ,' + ;
'cp.ID ,' + ;
lstPostcode + ' as lijstPostcode,' + ;
lstPlaats + ' as lijstPlaats ,' + ;
Regel1 + ' as regel1 ,' + ;
Regel2 + ' as regel2 ,' + ;
Regel3 + ' as regel3 ,' + ;
Regel4 + ' as regel4 ;
from crsPersoon as cP;
right outer join t_pers_func as MM on MM.pers_ID = cP.ID ;
where MM.wrkgrp_ID in (select * from crsGroepen) and not MM.pers_ID in (select pers_id from (.ctMailEx)) and !ISNULL(cp.id) [COLOR=red] and cp.Etiket[/color];
into cursor crsNAW;
order by 1'