764
« เมื่อ: มิถุนายน 07, 2011, 15:51:47 PM »
ผมลองเปลี่ยนตัวแปลจากเบาหวานเป็นความดัน แล้วไม่ได้ครับ
ก่อนแก้ไข
Value := getsqlstringdata('select fbs from opdscreen '+
' where hn = "'+ DBPipeline['hn']+'" and '+
' vstdate between "'+
formatdatetime('yyyy-mm-01',dm1)+'" and "'+
formatdatetime('yyyy-mm-31',dm1)+'" ');
หลังแก้ไข
Value := getsqlstringdata('select fbs from opdscreen '+
' where hn = "'+ DBPipeline['hn']+'" and '+
' vstdate between "'+
formatdatetime('yyyy-mm-01',ht1)+'" and "'+
formatdatetime('yyyy-mm-31',ht1)+'" ');
แล้วขึ้น
Error: Variable 13 OnCalc, Line 5: Undeclared identifire: 'ht1'.
ช่วยแก้ให้หน่อยครับ