I have this sql statement which produces the desired results,
SELECT COUNT(DISTINCT OEMCode) FROM master_data
WHERE repDate = '2013-04-01'
I wish to popular a checkbox field based on the results using an if statement at the “on Load” stage I think, so what Im trying to achieve is something like:
if ($sql>>=1)
{
{newcheckboxfield} = 1;
}
else
{
{newcheckboxfield} = 0;
}
I cant seem to put the 2 together or find a similar example? any help appreciated.
Thanks