Hello everyone,
im having problem with this select statement, whenever i put my select statement inside the quotation i encounter problem it says unrecognized command. is there any limitation in select statement when i put it inside the quotation mark?
here is my example of code. i always received error when my select statement become more longer inside the quotation.
SQLExec(1,"select vouchers.voucherno,vouchers.original,vouchers.source,vouchers.flowcardno,;
vouchers.qty,vouchers.actualqty,vouchers.accepterd,vouchers.good,vouchers.nogood,;
vouchers.inc_no1,vouchers.inc_no2,vouchers.inc_no3,incident.* ;
from vouchers inner join incident ON vouchers.voucherno=incident.voucherno ;
where vouchers.year_cov=?varyear_cov and vouchers.month_cov=?varmonth_cov","ese1")
but if i put it outside the quotation i don't have error.
select vouchers.voucherno,vouchers.original,vouchers.source,vouchers.flowcardno,;
vouchers.qty,vouchers.actualqty,vouchers.accepterd,vouchers.good,vouchers.nogood,;
vouchers.inc_no1,vouchers.inc_no2,vouchers.inc_no3,incident.* ;
from vouchers inner join incident ON vouchers.voucherno=incident.voucherno ;
where vouchers.year_cov=?varyear_cov and vouchers.month_cov=?varmonth_co
Thanks in advance.
im having problem with this select statement, whenever i put my select statement inside the quotation i encounter problem it says unrecognized command. is there any limitation in select statement when i put it inside the quotation mark?
here is my example of code. i always received error when my select statement become more longer inside the quotation.
SQLExec(1,"select vouchers.voucherno,vouchers.original,vouchers.source,vouchers.flowcardno,;
vouchers.qty,vouchers.actualqty,vouchers.accepterd,vouchers.good,vouchers.nogood,;
vouchers.inc_no1,vouchers.inc_no2,vouchers.inc_no3,incident.* ;
from vouchers inner join incident ON vouchers.voucherno=incident.voucherno ;
where vouchers.year_cov=?varyear_cov and vouchers.month_cov=?varmonth_cov","ese1")
but if i put it outside the quotation i don't have error.
select vouchers.voucherno,vouchers.original,vouchers.source,vouchers.flowcardno,;
vouchers.qty,vouchers.actualqty,vouchers.accepterd,vouchers.good,vouchers.nogood,;
vouchers.inc_no1,vouchers.inc_no2,vouchers.inc_no3,incident.* ;
from vouchers inner join incident ON vouchers.voucherno=incident.voucherno ;
where vouchers.year_cov=?varyear_cov and vouchers.month_cov=?varmonth_co
Thanks in advance.