T
Thanasis \(sch\)
Hi to everyone,
i use FP2003 DIW feature to manage my database (add,delete,update).
My access database has the following fields:
article_id(autonumber)
article_title(text)
article_date(date/time) with default value now()
article_body(memo)
link1(hyperlink)
link2(hyperlink)
image(text)
Everything(i.e add,delete) works fine except for update operation.
When i'm trying to update my database i get the following error message:
Database Results Error
Description: Syntax error in UPDATE statement.
Number: -2147217900 (0x80040E14)
Source: Microsoft JET Database Engine
One or more form fields were empty. You should provide default values for
all form fields that are used in the query.
I provide below the FP2003 generated code inside update.asp
Thanks in advance
thanasis
<!--webbot bot="DatabaseRegionStart"
s-columnnames="article_id,article_date,article_title,artcile_body,link1,link2,image"
s-columntypes="3,135,202,203,203,203,202" s-dataconnection="news"
b-tableformat="FALSE" b-menuformat="FALSE" s-menuchoice s-menuvalue
b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE"
b-listlabels="FALSE" b-listseparator="FALSE" i-ListFormat="0"
b-makeform="FALSE" s-RecordSource s-displaycolumns s-criteria s-order
s-sql="UPDATE news SET article_date = '::article_date::' , article_title =
'::article_title::' , artcile_body = '::artcile_body::' , link1 =
'::link1::' , link2 = '::link2::' , image = '::image::' WHERE (article_id =
::article_id:" b-procedure="FALSE" clientside SuggestedExt="asp"
s-DefaultFields="article_date=&article_title=&artcile_body=&link1=&link2=&image=&article_id=0"
s-NoRecordsFound="Record updated in table." i-MaxRecords="1" i-GroupSize="0"
u-dblib="../../../_fpclass/fpdblib.inc"
u-dbrgn1="../../../_fpclass/fpdbrgn1.inc"
u-dbrgn2="../../../_fpclass/fpdbrgn2.inc" Tag="BODY" startspan BOTID="0"
preview="<table border=0 width="100%"><tr><td
bgcolor="#FFFF00"><font color="#000000">This is
the start of a Database Results region. The page must be fetched from a web
server with a web browser to display correctly; the current web is stored on
your local disk or
network.</font></td></tr></table>" --><!--#include
file="../../../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database
Results component on this page is unable to display database content. The
page must have a filename ending in '.asp', and the web must be hosted on a
server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="UPDATE news SET article_date = '::article_date::' , article_title =
'::article_title::' , artcile_body = '::artcile_body::' , link1 =
'::link1::' , link2 = '::link2::' , image = '::image::' WHERE (article_id =
::article_id:"
fp_sDefault="article_date=&article_title=&artcile_body=&link1=&link2=&image=&article_id=0"
fp_sNoRecords="Record updated in table."
fp_sDataConn="news"
fp_iMaxRecords=1
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&article_id=3&article_date=135&article_title=202&artcile_body=203&link1=203&link2=203&image=202&"
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../../../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="12627" -->
i use FP2003 DIW feature to manage my database (add,delete,update).
My access database has the following fields:
article_id(autonumber)
article_title(text)
article_date(date/time) with default value now()
article_body(memo)
link1(hyperlink)
link2(hyperlink)
image(text)
Everything(i.e add,delete) works fine except for update operation.
When i'm trying to update my database i get the following error message:
Database Results Error
Description: Syntax error in UPDATE statement.
Number: -2147217900 (0x80040E14)
Source: Microsoft JET Database Engine
One or more form fields were empty. You should provide default values for
all form fields that are used in the query.
I provide below the FP2003 generated code inside update.asp
Thanks in advance
thanasis
<!--webbot bot="DatabaseRegionStart"
s-columnnames="article_id,article_date,article_title,artcile_body,link1,link2,image"
s-columntypes="3,135,202,203,203,203,202" s-dataconnection="news"
b-tableformat="FALSE" b-menuformat="FALSE" s-menuchoice s-menuvalue
b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE"
b-listlabels="FALSE" b-listseparator="FALSE" i-ListFormat="0"
b-makeform="FALSE" s-RecordSource s-displaycolumns s-criteria s-order
s-sql="UPDATE news SET article_date = '::article_date::' , article_title =
'::article_title::' , artcile_body = '::artcile_body::' , link1 =
'::link1::' , link2 = '::link2::' , image = '::image::' WHERE (article_id =
::article_id:" b-procedure="FALSE" clientside SuggestedExt="asp"
s-DefaultFields="article_date=&article_title=&artcile_body=&link1=&link2=&image=&article_id=0"
s-NoRecordsFound="Record updated in table." i-MaxRecords="1" i-GroupSize="0"
u-dblib="../../../_fpclass/fpdblib.inc"
u-dbrgn1="../../../_fpclass/fpdbrgn1.inc"
u-dbrgn2="../../../_fpclass/fpdbrgn2.inc" Tag="BODY" startspan BOTID="0"
preview="<table border=0 width="100%"><tr><td
bgcolor="#FFFF00"><font color="#000000">This is
the start of a Database Results region. The page must be fetched from a web
server with a web browser to display correctly; the current web is stored on
your local disk or
network.</font></td></tr></table>" --><!--#include
file="../../../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database
Results component on this page is unable to display database content. The
page must have a filename ending in '.asp', and the web must be hosted on a
server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="UPDATE news SET article_date = '::article_date::' , article_title =
'::article_title::' , artcile_body = '::artcile_body::' , link1 =
'::link1::' , link2 = '::link2::' , image = '::image::' WHERE (article_id =
::article_id:"
fp_sDefault="article_date=&article_title=&artcile_body=&link1=&link2=&image=&article_id=0"
fp_sNoRecords="Record updated in table."
fp_sDataConn="news"
fp_iMaxRecords=1
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&article_id=3&article_date=135&article_title=202&artcile_body=203&link1=203&link2=203&image=202&"
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../../../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="12627" -->