Hi all,
I have created the below on a form basically to open it hidden, check if there is any data (like if dcount()>0 and then continue or stop the code when necessary. My question. Is there any other way to accoplish the task with a simple Dlookup or an Sql code?
Here's the sql;
SELECT t.idcode, t.dfrom, t.dto FROM t WHERE (((Forms!vv!txty) Between [dfrom] And [dto])) GROUP BY t.idcode, t.dfrom, t.dto HAVING (((t.idcode)="101z"));
Thanks in advance
Kenneth
I have created the below on a form basically to open it hidden, check if there is any data (like if dcount()>0 and then continue or stop the code when necessary. My question. Is there any other way to accoplish the task with a simple Dlookup or an Sql code?
Here's the sql;
SELECT t.idcode, t.dfrom, t.dto FROM t WHERE (((Forms!vv!txty) Between [dfrom] And [dto])) GROUP BY t.idcode, t.dfrom, t.dto HAVING (((t.idcode)="101z"));
Thanks in advance
Kenneth