1
แจ้งปัญหา / ขอความช่วยเหลือ / รบกวนขอscript ประวัติการรับวัคซีนหน่อยครับ
« เมื่อ: ตุลาคม 11, 2012, 11:07:38 AM »
ผมลองเขียนแล้วมันไม่แสดง รบกวนอาจารย์ทั้งหลายหน่อยครับ
if fdepartment='011' then
begin
fhn:=getsqldata('select hn from ovst where vn = "'+fvn+'"');
if getsqldata('select count(pv.vaccine_name) as cc '+
'from ovst_vaccine ov,person_vaccine pv,ovst v '+
'where v.vn=ov.vn and v.hn="'+fhn+'" and ov.person_vaccine_id=pv.person_vaccine_id '+
'and pv.person_vaccine_id between "39" and "44" ')>0 then
showmessage('ทดสอบระบบ');<--- ตรงนี้อยากให้บอกว่า ได้วัคซีนอะไร เข็มที่เท่าไหร่ เมื่อวันที่เท่าใด ครับ
end;
ขอบคุณล่วงหน่าครับ