I am using FP 2002 w/MSA DB backend. SELECT statements work fine. I get the the following error when executing and UPDATE query:
Description: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
Number: -2147217904 (0x80040E10)
Source: Microsoft OLE DB Provider for ODBC Drivers
PRACTID field is text field so I used "None" as the default. There 8 fields total in this
Here is the dieted code (Note that even with undieted code this is still the error I get):
<!--#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 TabA SET Numb = '%%Numb%%', Jobs = '%%Jobs%%' WHERE PRACTID = :RACTID::"
fp_sDefault="PRACTID=None"
fp_sNoRecords="No records returned."
fp_sDataConn="Database2"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--#include file="_fpclass/fpdbrgn2.inc"-->
Ideas?
"I feel more like I do now than when I got here."
~ Defcon Moderator ~
Description: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
Number: -2147217904 (0x80040E10)
Source: Microsoft OLE DB Provider for ODBC Drivers
PRACTID field is text field so I used "None" as the default. There 8 fields total in this
Here is the dieted code (Note that even with undieted code this is still the error I get):
<!--#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 TabA SET Numb = '%%Numb%%', Jobs = '%%Jobs%%' WHERE PRACTID = :RACTID::"
fp_sDefault="PRACTID=None"
fp_sNoRecords="No records returned."
fp_sDataConn="Database2"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--#include file="_fpclass/fpdbrgn2.inc"-->
Ideas?
"I feel more like I do now than when I got here."
~ Defcon Moderator ~