Hi,
I have a simple query but it's not working:
#form.status#% is numeric and I'm wondering if that's it.
from tblEMP
<CFQUERY NAME="GetNumber" DATASOURCE="Empdocs">
SELECT EmpStat
where EmpStat LIKE '%TP%'
AND EmpStat LIKE '%#form.status#%'
</CFQUERY>
<CFOUTPUT
query="GetNumber">
<p>The Status is: #EmpStat#
</cfoutput>
I tried hardcoding the value for #form.status#%' in the select statement and that worked. but I need to get the value from the form.
SO it would be:
<CFQUERY NAME="GetNumber" DATASOURCE="Empdocs">
SELECT EmpStat
from tblEMP
where EmpStat LIKE '%TP%'
AND EmpStat LIKE '%55%'
</CFQUERY>
Thanks so much.
I have a simple query but it's not working:
#form.status#% is numeric and I'm wondering if that's it.
from tblEMP
<CFQUERY NAME="GetNumber" DATASOURCE="Empdocs">
SELECT EmpStat
where EmpStat LIKE '%TP%'
AND EmpStat LIKE '%#form.status#%'
</CFQUERY>
<CFOUTPUT
query="GetNumber">
<p>The Status is: #EmpStat#
</cfoutput>
I tried hardcoding the value for #form.status#%' in the select statement and that worked. but I need to get the value from the form.
SO it would be:
<CFQUERY NAME="GetNumber" DATASOURCE="Empdocs">
SELECT EmpStat
from tblEMP
where EmpStat LIKE '%TP%'
AND EmpStat LIKE '%55%'
</CFQUERY>
Thanks so much.