Version=SC7
I am using a multi-record Form
Field type =select
The Lookup settings are set to automatic
I need to include an “if” statement in the select function with reference to another field in the form as below
IF(TRDAccSel=“M”)
SELECT AttCustCode, sc_concat(AttUserCode, Client, Matter)
FROM matters
WHERE AttCustCode=[global_attcode]
ORDER BY AttUserCode, Client, Matter
Is my statement incorrect or does SC not allow the “if”
when running the app I get an error message :Error while accessing the database:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF(TRDAccSel=“M”)SELECT AttCustCode, sc_concat(AttUserCode, Client, Matter) ’ at line 1
Can anyone Help ?