Not too sure whats going on here

But the first thing is to stop using cfupdate.

As a rule try to avoid using cfinsert and cfupdate.

Try replacing cfupdate and see if you are still having issues

The fact Mike mentions also is very valid, you seem to be trying to check
for the existance of ID at the top, but there is no cfif statement(??)

hth
Mark

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 10 September 2004 08:58
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Update form inconcistent


Can anyone shed any light as to why an update page will update 50% of
the time but sometimes return the error  
<TABLE cellSpacing=0 cellPadding=0 width=500 border=0>

<TR>
<TD id=tableProps2 vAlign=center align=left width=500>
<H1 id=textSection1 style="FONT: 13pt/15pt verdana; COLOR: black">Primary
key field "ID," not found. </H1></TD></TR> <TR> <TD id=tablePropsWidth
width=400 colSpan=2><FONT style="FONT: 8pt/11pt verdana; COLOR: black">The
field "ID," was not found in the Form input. This field is required in order
to do an UPDATE because it is part of the primary key for the "faith" table.
</FONT></TD></TR> <TR> <TD>&nbsp;</TD></TR> <TR> <TD width=400
colSpan=2><FONT style="FONT: 8pt/11pt verdana; COLOR:
black"></FONT></TD></TR> <TR> <TD colSpan=2><PRE>5 : &lt;body&gt; 6 : 
[B]7 : &lt;cfupdate datasource="Weddings" tablename="faith"&gt;[/B] 8 : 
9 : &lt;h1&gt;Details Updated&lt;/h1&gt; </PRE></TD></TR></TABLE> <P>The
code is:<BR><BR>[U]UPDATE FORM
PAGE<BR>[/U]<BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;title&gt;update_form&lt;
/title&gt;<BR>&lt;link href="style2.css" rel="stylesheet"
type="text/css"&gt;<BR>&lt;/head&gt;</P>
<P>&lt;body&gt;</P>
<P>&lt;cfquery name="update" datasource="Weddings"&gt;<BR>&nbsp; SELECT *
FROM faith<BR>&lt;/cfquery&gt;</P> <P><BR>&lt;cfoutput
query="update"&gt;</P> <P>&lt;table width="100%"&gt;<BR>&lt;cfform
name="update_details"
action="update_action.cfm?ID=&lt;cfoutput&gt;#URL.ID#&lt;/cfoutput&gt;"
method="Post"&gt;<BR><BR>[U]UPDATE ACTION
PAGE[/U]<BR><BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&nbsp;&nbsp;
&lt;title&gt;update_action&lt;/title&gt;<BR>&lt;/head&gt;<BR>&lt;body&gt;</P
>
<P>&lt;cfupdate datasource="Weddings" tablename="faith"&gt;</P>
<P>&lt;h1&gt;Details Updated&lt;/h1&gt;</P> <P>You have updated the details
for the couples in the database.</P>
<P><BR>&lt;/body&gt;<BR>&lt;/html&gt;<BR><BR>Many Thanks<BR><BR>Nigel
Smyrk</P>


N Smyrk
                
                This message has been sent from CFdeveloper with username
smyrk ([EMAIL PROTECTED])
                

-- 
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]



-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to