In my app, I do not want the user to be able to enter a value if 5 values already exist.
On the 'Add' button, I have this:
/////////////////////////////////////////
SELECT Count(people)
INTO :num_people
FROM t_people
Where ((total_d = :in_total)
COMMIT;
if(num_people > 5) then
MessageBox(sg_msg)
else
OpenWithParm(wc_form_people_permission, TheItem )
end if
//////////////////////////////////////////////
But num_people is always = 0.
any ideas?
thanks
g
On the 'Add' button, I have this:
/////////////////////////////////////////
SELECT Count(people)
INTO :num_people
FROM t_people
Where ((total_d = :in_total)
COMMIT;
if(num_people > 5) then
MessageBox(sg_msg)
else
OpenWithParm(wc_form_people_permission, TheItem )
end if
//////////////////////////////////////////////
But num_people is always = 0.
any ideas?
thanks
g