I'm stumpted. I have a filed defined in ACCESS as text and I want to compare it to some values that I am getting from the database. I have to first concatenate the 4 numeric fields and then pass it on to another form to do the query. My problem is that the comparison never works. If I just do a simple WHERE slvc = '042A', I have no problems with it, but if I use WHERE slvc = '#sl#', i don't get any results. I have tried different combinations with the WHERE clause, but nothing. The match doesn't seem to work.
Thanks in advance if any guys/gals with your help.
<CFSET slv = '#caclval##location##causecl##causeval#'>
<a href="javascript:NewWin=window.open ('DetailsWindow.cfm?sl=#slv#', 'showwindow', 'toolbar=no,status=no,width=550,height=570'); NewWin.focus();"onmouseover="window.status='Click here'; return true;"onmouseout="window.status=''; return true;"
>Click here</a>
================================================
<CFQUERY DATASOURCE = "mysadb" NAME = "getslcv" CACHEDWITHIN="2">
SELECT *
FROM slcv_context
WHERE slcv = '#sl#'
</CFQUERY>
Kenneth
Thanks in advance if any guys/gals with your help.
<CFSET slv = '#caclval##location##causecl##causeval#'>
<a href="javascript:NewWin=window.open ('DetailsWindow.cfm?sl=#slv#', 'showwindow', 'toolbar=no,status=no,width=550,height=570'); NewWin.focus();"onmouseover="window.status='Click here'; return true;"onmouseout="window.status=''; return true;"
>Click here</a>
================================================
<CFQUERY DATASOURCE = "mysadb" NAME = "getslcv" CACHEDWITHIN="2">
SELECT *
FROM slcv_context
WHERE slcv = '#sl#'
</CFQUERY>
Kenneth