programmher
Programmer
I am writing a series of pages that:<br><br>1. Allow data entry;<br>2. Display the entered data;<br>3. Offer the user the ability to correct any typos from the<br> second form.<br><br>The problem arises with the embedded SQL statement on my 3rd/4th forms. When I enter a specific SSN, the query works and the correct information is displayed. When I use the '#variable#', I get the below error:<br><br>Error Diagnostic Information<br>Error resolving parameter SSN<br><br><br>ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either: <br><br>You have misspelled the parameter name, or <br>You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.<br><br>The error occurred while evaluating the expression: <br>#SSN#<br><br>The error occurred while processing an element with a general identifier of (#SSN#), occupying document position (14:14) to (14:18).<br><br>Below is my query:<br><br><br> <cfquery name="MyQuery" datasource="EmployeeDatabase" dbtype="odbc"><br>Select *<br>From Employee<br>WHERE SSN = '#SSN#'<br></cfquery><br><br><cfform action="RecruiterChanges.cfm" method="post" enablecab="yes"><br><br><br>I have used '#form.variable#'; I've used #variable#; I've used #form.variable#. NONE OF THESE WORK!!! What am I missing?!?!?!??!<br><br>(Any assistance will be GREATLY appreciated. I suspect this is something very simple...)<br><br>Thanks in advance!<br>