I have a form that updates fields in an Access Database- very simple and straightforward.
My insert listing data and delete listings data setups work fine-no errors. But my modify existing data setup is giving me the following error:
Error Executing Database Query.
Syntax error in UPDATE statement.
The error occurred in D:\Hosting\markf22\F22Admin\F22UpdatedClientInfo.cfm: line 102
100 : Secret = '#Form.Secret#',
101 : Portfolio = '#Form.Portfolio#',
102 : WHERE CustomerID = #Form.CustomerID#
103 : </cfquery>
104 : <cfoutput>
SQL UPDATE Clients SET Customer = 'Billy', Secret = 'berty', Portfolio = 'bert', WHERE CustomerID = 2
DATASOURCE markf22_accesscf_f22customers
VENDORERRORCODE 3092
SQLSTATE
Here is the code from the form the update cfm page is taking from:
Code:
<cfquery name= "UpdateClient"
datasource="markf22_accesscf_f22customers">
SELECT * FROM Clients WHERE CustomerID = #form.Customer#
</cfquery>
<cfoutput query= "UpdateClient">
<form action="F22UpdatedClientInfo.cfm" method="post">
<table width="360" border="1">
<tr align="center" valign="middle">
<td width="111" class="Copy"><div align="right" class="form">
<div align="right">Client Name:</div>
</div></td>
<td width="119"><div align="center">
<input name="Customer" type="text" id="Customer" value="#Customer#" size="35" maxlength="50">
</div></td>
</tr>
<tr align="left" valign="middle">
<td class="Copy"><div align="right" class="form">Password:</div></td>
<td><input name="Secret" type="text" id="Secret" value="#Secret#" size="35" maxlength="50"></td>
</tr>
<tr align="left" valign="middle">
<td class="Copy"><div align="right" class="form">Portfolio URL:</div></td>
<td><input name="Portfolio" type="text" id="Portfolio" value="#Portfolio#" size="35" maxlength="50"></td>
</tr>
<input type="hidden" name="CustomerID" value="#CustomerID#">
<tr>
<td colspan="2"><div align="center">
<input name="submit" type="submit" id="SubmitPosting" value="Submit Posting">
</div></td>
</tr>
</table>
</form>
</cfoutput>
What the heck???
Dave