chapstickMan
asked on
Can't do an update query into Access from FrontPage
I have a page that pulls results from my database just fine.
However, when I try to do update queries, it keeps saying this:
Database Results Wizard Error
The operation failed. If this continues, please contact your server administrator.
However, when I make frontpages silly NorthWind example database, it let's me update that database.
I am completely lost how I can solve this problem. The pages are asp.
Thanks!
However, when I try to do update queries, it keeps saying this:
Database Results Wizard Error
The operation failed. If this continues, please contact your server administrator.
However, when I make frontpages silly NorthWind example database, it let's me update that database.
I am completely lost how I can solve this problem. The pages are asp.
Thanks!
ASKER
Hi:
Can you tell me exactly where I'd need to set the permissions? Would I do that inside IIS or would I just right click on the certain file(s)? I tried comparing the northwind sample database with mine, and couldn't find any different permissions set, and that one works.
Here is the code for my update.asp page. (Sorry if it's so much, it's a rather large form)
Thanks for your help!
<!--#include File='login.asa'-->
<%
If Session(SiteID) <> true Then
Response.Redirect("Login.a sp?request er=update. asp")
End If
%>
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a FrontPage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Results -- Updated Record</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor. Document">
</head>
<body bgcolor="#FFFFFF">
<!--webbot bot="PurpleText" PREVIEW="-Important- If you modify this Database Results region using the Database Results Wizard, then your Database Editor will no longer work. If you accidentally open the Database Results Wizard, simply click Cancel to exit without regenerating the Database Results region." -->
<script Language="JavaScript">
<!--
top.list.location.href = top.list.location.href;
// -->
</script>
<!--webbot bot="DatabaseRegionStart" s-columnnames="Key,FirstNa me,LastNam e,SocialSe curity,Bir thday,Sex, Sport,Advi sor,ClassL evel,Phone Number,ema il,A1,A2,A 3_Father,A 3_Mother,A 3_Sibling, A3_Childre n,A3_Other ,A4,Adopte d,FirstGen ,B1,B2,B3, B4,C1head, C1diab,C1S eiz,C1conc ,C1unco,C1 ear,C1visi on,C1hear, C1stroke,C 1asth,C1al ler,C1feve r,C1drown, C1other,C2 ,C3,C4,C5, C6,C7,S1,C 8,C9,C10,C 11,C12,C13 ,C14,C15,C 16,C17,D1m ath,D1verb al,D2,D3,D 4elm,D4ept ,D4mp,D4tw a,D5,D6,D7 spec,D7phy s,D7limit, D7emoti,D7 econ,D7man ag,D7task, D7home,D7l ack,D7bad, D7poor,D7o ther,D8,D9 anxi,D9tru e,D9short, D9spell,D9 memo,D9com p,D9insuff ,D9match,D 9long,D9gr am,D9back, D9mult,D9f ill,D9calc ,D9organ,D 9dist,E1,E 2,E3,E4,E5 ,E6under,E 6itegr,E6l oca,E6read ,E7,F1add, F1mult,F1t ime,F1mana g,F1geom,F 1subt,F1di vis,F1mone y,F1meas,F 2,F3,G1,G2 ,G3,G4,G5, H1verb,H1l ect,H1misi nterp,H2,H 3,H4misint erp1,H4mis interp2,H4 misinterp3 ,I1,I2get, I2go,I2bec om,I2bud,I 2stic,I2te st,I2blurt ,I2shift,I 2bein,I2li st,I2act,I 2lack,I2ma k,I2under, I2fid,I2wa it,I2foll, I2sust,I2e xces,I2int er,I2losi, I2other,I3 ,I4,C101,C 161,C18,C1 9,C20in,C2 0priv,C20o pto,C20alc o,C20relax ,C20other, C21,D4,D7e lm,D7ept,D 7mp,D7twa, D9,D10,D11 spec,D11ph ys,D11limi t,D11emoti ,D11econ,D 11manag,D1 1task,D11h ome,D11lac k,D11bad,D 11poor,D11 other,D12, D13anxi,D1 3true,D13s hort,D13sp ell,D13mem o,D13comp, D13insuff, D13match,D 13long,D13 gram,D13ba ck,D13mult ,D13fill,D 13calc,D13 organ,D13d ist" s-columntypes="3,202,202,2 02,202,202 ,202,202,2 02,202,202 ,203,203,2 02,202,202 ,202,202,2 03,202,202 ,203,203,2 03,203,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,203,202 ,203,202,2 03,202,203 ,203,202,2 02,202,203 ,202,203,2 02,202,203 ,202,202,2 03,202,202 ,202,202,2 02,202,203 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 03,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,203,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,203,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,203,2 03,203,203 ,202,203,2 02,202,202 ,202,202,2 02,203,203 ,202,202,2 02,202,203 ,203,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,203,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 ,202,202,2 02,202,202 " s-dataconnection="eea" 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 Results SET FirstName = '::FirstName::' , LastName = '::LastName::' , SocialSecurity = '::SocialSecurity::' , Birthday = '::Birthday::' , Sex = '::Sex::' , Sport = '::Sport::' , Advisor = '::Advisor::' , ClassLevel = '::ClassLevel::' , PhoneNumber = '::PhoneNumber::' , email = '::email::' , A1 = '::A1::' , A2 = '::A2::' , A3_Father = '::A3_Father::' , A3_Mother = '::A3_Mother::' , A3_Sibling = '::A3_Sibling::' , A3_Children = '::A3_Children::' , A3_Other = '::A3_Other::' , A4 = '::A4::' , Adopted = '::Adopted::' , FirstGen = '::FirstGen::' , B1 = '::B1::' , B2 = '::B2::' , B3 = '::B3::' , B4 = '::B4::' , C1head = '::C1head::' , C1diab = '::C1diab::' , C1Seiz = '::C1Seiz::' , C1conc = '::C1conc::' , C1unco = '::C1unco::' , C1ear = '::C1ear::' , C1vision = '::C1vision::' , C1hear = '::C1hear::' , C1stroke = '::C1stroke::' , C1asth = '::C1asth::' , C1aller = '::C1aller::' , C1fever = '::C1fever::' , C1drown = '::C1drown::' , C1other = '::C1other::' , C2 = '::C2::' , C3 = '::C3::' , C4 = '::C4::' , C5 = '::C5::' , C6 = '::C6::' , C7 = '::C7::' , S1 = '::S1::' , C8 = '::C8::' , C9 = '::C9::' , C10 = '::C10::' , C11 = '::C11::' , C12 = '::C12::' , C13 = '::C13::' , C14 = '::C14::' , C15 = '::C15::' , C16 = '::C16::' , C17 = '::C17::' , D1math = '::D1math::' , D1verbal = '::D1verbal::' , D2 = '::D2::' , D3 = '::D3::' , D4elm = '::D4elm::' , D4ept = '::D4ept::' , D4mp = '::D4mp::' , D4twa = '::D4twa::' , D5 = '::D5::' , D6 = '::D6::' , D7spec = '::D7spec::' , D7phys = '::D7phys::' , D7limit = '::D7limit::' , D7emoti = '::D7emoti::' , D7econ = '::D7econ::' , D7manag = '::D7manag::' , D7task = '::D7task::' , D7home = '::D7home::' , D7lack = '::D7lack::' , D7bad = '::D7bad::' , D7poor = '::D7poor::' , D7other = '::D7other::' , D8 = '::D8::' , D9anxi = '::D9anxi::' , D9true = '::D9true::' , D9short = '::D9short::' , D9spell = '::D9spell::' , D9memo = '::D9memo::' , D9comp = '::D9comp::' , D9insuff = '::D9insuff::' , D9match = '::D9match::' , D9long = '::D9long::' , D9gram = '::D9gram::' , D9back = '::D9back::' , D9mult = '::D9mult::' , D9fill = '::D9fill::' , D9calc = '::D9calc::' , D9organ = '::D9organ::' , D9dist = '::D9dist::' , E1 = '::E1::' , E2 = '::E2::' , E3 = '::E3::' , E4 = '::E4::' , E5 = '::E5::' , E6under = '::E6under::' , E6itegr = '::E6itegr::' , E6loca = '::E6loca::' , E6read = '::E6read::' , E7 = '::E7::' , F1add = '::F1add::' , F1mult = '::F1mult::' , F1time = '::F1time::' , F1manag = '::F1manag::' , F1geom = '::F1geom::' , F1subt = '::F1subt::' , F1divis = '::F1divis::' , F1money = '::F1money::' , F1meas = '::F1meas::' , F2 = '::F2::' , F3 = '::F3::' , G1 = '::G1::' , G2 = '::G2::' , G3 = '::G3::' , G4 = '::G4::' , G5 = '::G5::' , H1verb = '::H1verb::' , H1lect = '::H1lect::' , H1misinterp = '::H1misinterp::' , H2 = '::H2::' , H3 = '::H3::' , H4misinterp1 = '::H4misinterp1::' , H4misinterp2 = '::H4misinterp2::' , H4misinterp3 = '::H4misinterp3::' , I1 = '::I1::' , I2get = '::I2get::' , I2go = '::I2go::' , I2becom = '::I2becom::' , I2bud = '::I2bud::' , I2stic = '::I2stic::' , I2test = '::I2test::' , I2blurt = '::I2blurt::' , I2shift = '::I2shift::' , I2bein = '::I2bein::' , I2list = '::I2list::' , I2act = '::I2act::' , I2lack = '::I2lack::' , I2mak = '::I2mak::' , I2under = '::I2under::' , I2fid = '::I2fid::' , I2wait = '::I2wait::' , I2foll = '::I2foll::' , I2sust = '::I2sust::' , I2exces = '::I2exces::' , I2inter = '::I2inter::' , I2losi = '::I2losi::' , I2other = '::I2other::' , I3 = '::I3::' , I4 = '::I4::' , C101 = '::C101::' , C161 = '::C161::' , C18 = '::C18::' , C19 = '::C19::' , C20in = '::C20in::' , C20priv = '::C20priv::' , C20opto = '::C20opto::' , C20alco = '::C20alco::' , C20relax = '::C20relax::' , C20other = '::C20other::' , C21 = '::C21::' , D4 = '::D4::' , D7elm = '::D7elm::' , D7ept = '::D7ept::' , D7mp = '::D7mp::' , D7twa = '::D7twa::' , D9 = '::D9::' , D10 = '::D10::' , D11spec = '::D11spec::' , D11phys = '::D11phys::' , D11limit = '::D11limit::' , D11emoti = '::D11emoti::' , D11econ = '::D11econ::' , D11manag = '::D11manag::' , D11task = '::D11task::' , D11home = '::D11home::' , D11lack = '::D11lack::' , D11bad = '::D11bad::' , D11poor = '::D11poor::' , D11other = '::D11other::' , D12 = '::D12::' , D13anxi = '::D13anxi::' , D13true = '::D13true::' , D13short = '::D13short::' , D13spell = '::D13spell::' , D13memo = '::D13memo::' , D13comp = '::D13comp::' , D13insuff = '::D13insuff::' , D13match = '::D13match::' , D13long = '::D13long::' , D13gram = '::D13gram::' , D13back = '::D13back::' , D13mult = '::D13mult::' , D13fill = '::D13fill::' , D13calc = '::D13calc::' , D13organ = '::D13organ::' , D13dist = '::D13dist::' WHERE (Key = ::Key::)" b-procedure="FALSE" clientside SuggestedExt="asp" s-DefaultFields="FirstName =&LastName =&SocialSe curity=&Bi rthday=&Se x=&Sport=& Advisor=&C lassLevel= &PhoneNumb er=&email= &A1=&A2=&A 3_Father=& A3_Mother= &A3_Siblin g=&A3_Chil dren=&A3_O ther=&A4=& Adopted=&F irstGen=&B 1=&B2=&B3= &B4=&C1hea d=&C1diab= &C1Seiz=&C 1conc=&C1u nco=&C1ear =&C1vision =&C1hear=& C1stroke=& C1asth=&C1 aller=&C1f ever=&C1dr own=&C1oth er=&C2=&C3 =&C4=&C5=& C6=&C7=&S1 =&C8=&C9=& C10=&C11=& C12=&C13=& C14=&C15=& C16=&C17=& D1math=&D1 verbal=&D2 =&D3=&D4el m=&D4ept=& D4mp=&D4tw a=&D5=&D6= &D7spec=&D 7phys=&D7l imit=&D7em oti=&D7eco n=&D7manag =&D7task=& D7home=&D7 lack=&D7ba d=&D7poor= &D7other=& D8=&D9anxi =&D9true=& D9short=&D 9spell=&D9 memo=&D9co mp=&D9insu ff=&D9matc h=&D9long= &D9gram=&D 9back=&D9m ult=&D9fil l=&D9calc= &D9organ=& D9dist=&E1 =&E2=&E3=& E4=&E5=&E6 under=&E6i tegr=&E6lo ca=&E6read =&E7=&F1ad d=&F1mult= &F1time=&F 1manag=&F1 geom=&F1su bt=&F1divi s=&F1money =&F1meas=& F2=&F3=&G1 =&G2=&G3=& G4=&G5=&H1 verb=&H1le ct=&H1misi nterp=&H2= &H3=&H4mis interp1=&H 4misinterp 2=&H4misin terp3=&I1= &I2get=&I2 go=&I2beco m=&I2bud=& I2stic=&I2 test=&I2bl urt=&I2shi ft=&I2bein =&I2list=& I2act=&I2l ack=&I2mak =&I2under= &I2fid=&I2 wait=&I2fo ll=&I2sust =&I2exces= &I2inter=& I2losi=&I2 other=&I3= &I4=&C101= &C161=&C18 =&C19=&C20 in=&C20pri v=&C20opto =&C20alco= &C20relax= &C20other= &C21=&D4=& D7elm=&D7e pt=&D7mp=& D7twa=&D9= &D10=&D11s pec=&D11ph ys=&D11lim it=&D11emo ti=&D11eco n=&D11mana g=&D11task =&D11home= &D11lack=& D11bad=&D1 1poor=&D11 other=&D12 =&D13anxi= &D13true=& D13short=& D13spell=& D13memo=&D 13comp=&D1 3insuff=&D 13match=&D 13long=&D1 3gram=&D13 back=&D13m ult=&D13fi ll=&D13cal c=&D13orga n=&D13dist =&Key=0" s-NoRecordsFound="Record updated in table." i-MaxRecords="1" i-GroupSize="0" u-dblib="../../../_fpclass /fpdblib.i nc" u-dbrgn1="../../../_fpclas s/fpdbrgn1 .inc" u-dbrgn2="../../../_fpclas s/fpdbrgn2 .inc" Tag="BODY" startspan BOTID="0" preview="<table border=0 width="100%"> <tr> <td bgcolor="#FFFF00" ;><f ont color="#000000"& gt;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/fp dblib.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 Results SET FirstName = '::FirstName::' , LastName = '::LastName::' , SocialSecurity = '::SocialSecurity::' , Birthday = '::Birthday::' , Sex = '::Sex::' , Sport = '::Sport::' , Advisor = '::Advisor::' , ClassLevel = '::ClassLevel::' , PhoneNumber = '::PhoneNumber::' , email = '::email::' , A1 = '::A1::' , A2 = '::A2::' , A3_Father = '::A3_Father::' , A3_Mother = '::A3_Mother::' , A3_Sibling = '::A3_Sibling::' , A3_Children = '::A3_Children::' , A3_Other = '::A3_Other::' , A4 = '::A4::' , Adopted = '::Adopted::' , FirstGen = '::FirstGen::' , B1 = '::B1::' , B2 = '::B2::' , B3 = '::B3::' , B4 = '::B4::' , C1head = '::C1head::' , C1diab = '::C1diab::' , C1Seiz = '::C1Seiz::' , C1conc = '::C1conc::' , C1unco = '::C1unco::' , C1ear = '::C1ear::' , C1vision = '::C1vision::' , C1hear = '::C1hear::' , C1stroke = '::C1stroke::' , C1asth = '::C1asth::' , C1aller = '::C1aller::' , C1fever = '::C1fever::' , C1drown = '::C1drown::' , C1other = '::C1other::' , C2 = '::C2::' , C3 = '::C3::' , C4 = '::C4::' , C5 = '::C5::' , C6 = '::C6::' , C7 = '::C7::' , S1 = '::S1::' , C8 = '::C8::' , C9 = '::C9::' , C10 = '::C10::' , C11 = '::C11::' , C12 = '::C12::' , C13 = '::C13::' , C14 = '::C14::' , C15 = '::C15::' , C16 = '::C16::' , C17 = '::C17::' , D1math = '::D1math::' , D1verbal = '::D1verbal::' , D2 = '::D2::' , D3 = '::D3::' , D4elm = '::D4elm::' , D4ept = '::D4ept::' , D4mp = '::D4mp::' , D4twa = '::D4twa::' , D5 = '::D5::' , D6 = '::D6::' , D7spec = '::D7spec::' , D7phys = '::D7phys::' , D7limit = '::D7limit::' , D7emoti = '::D7emoti::' , D7econ = '::D7econ::' , D7manag = '::D7manag::' , D7task = '::D7task::' , D7home = '::D7home::' , D7lack = '::D7lack::' , D7bad = '::D7bad::' , D7poor = '::D7poor::' , D7other = '::D7other::' , D8 = '::D8::' , D9anxi = '::D9anxi::' , D9true = '::D9true::' , D9short = '::D9short::' , D9spell = '::D9spell::' , D9memo = '::D9memo::' , D9comp = '::D9comp::' , D9insuff = '::D9insuff::' , D9match = '::D9match::' , D9long = '::D9long::' , D9gram = '::D9gram::' , D9back = '::D9back::' , D9mult = '::D9mult::' , D9fill = '::D9fill::' , D9calc = '::D9calc::' , D9organ = '::D9organ::' , D9dist = '::D9dist::' , E1 = '::E1::' , E2 = '::E2::' , E3 = '::E3::' , E4 = '::E4::' , E5 = '::E5::' , E6under = '::E6under::' , E6itegr = '::E6itegr::' , E6loca = '::E6loca::' , E6read = '::E6read::' , E7 = '::E7::' , F1add = '::F1add::' , F1mult = '::F1mult::' , F1time = '::F1time::' , F1manag = '::F1manag::' , F1geom = '::F1geom::' , F1subt = '::F1subt::' , F1divis = '::F1divis::' , F1money = '::F1money::' , F1meas = '::F1meas::' , F2 = '::F2::' , F3 = '::F3::' , G1 = '::G1::' , G2 = '::G2::' , G3 = '::G3::' , G4 = '::G4::' , G5 = '::G5::' , H1verb = '::H1verb::' , H1lect = '::H1lect::' , H1misinterp = '::H1misinterp::' , H2 = '::H2::' , H3 = '::H3::' , H4misinterp1 = '::H4misinterp1::' , H4misinterp2 = '::H4misinterp2::' , H4misinterp3 = '::H4misinterp3::' , I1 = '::I1::' , I2get = '::I2get::' , I2go = '::I2go::' , I2becom = '::I2becom::' , I2bud = '::I2bud::' , I2stic = '::I2stic::' , I2test = '::I2test::' , I2blurt = '::I2blurt::' , I2shift = '::I2shift::' , I2bein = '::I2bein::' , I2list = '::I2list::' , I2act = '::I2act::' , I2lack = '::I2lack::' , I2mak = '::I2mak::' , I2under = '::I2under::' , I2fid = '::I2fid::' , I2wait = '::I2wait::' , I2foll = '::I2foll::' , I2sust = '::I2sust::' , I2exces = '::I2exces::' , I2inter = '::I2inter::' , I2losi = '::I2losi::' , I2other = '::I2other::' , I3 = '::I3::' , I4 = '::I4::' , C101 = '::C101::' , C161 = '::C161::' , C18 = '::C18::' , C19 = '::C19::' , C20in = '::C20in::' , C20priv = '::C20priv::' , C20opto = '::C20opto::' , C20alco = '::C20alco::' , C20relax = '::C20relax::' , C20other = '::C20other::' , C21 = '::C21::' , D4 = '::D4::' , D7elm = '::D7elm::' , D7ept = '::D7ept::' , D7mp = '::D7mp::' , D7twa = '::D7twa::' , D9 = '::D9::' , D10 = '::D10::' , D11spec = '::D11spec::' , D11phys = '::D11phys::' , D11limit = '::D11limit::' , D11emoti = '::D11emoti::' , D11econ = '::D11econ::' , D11manag = '::D11manag::' , D11task = '::D11task::' , D11home = '::D11home::' , D11lack = '::D11lack::' , D11bad = '::D11bad::' , D11poor = '::D11poor::' , D11other = '::D11other::' , D12 = '::D12::' , D13anxi = '::D13anxi::' , D13true = '::D13true::' , D13short = '::D13short::' , D13spell = '::D13spell::' , D13memo = '::D13memo::' , D13comp = '::D13comp::' , D13insuff = '::D13insuff::' , D13match = '::D13match::' , D13long = '::D13long::' , D13gram = '::D13gram::' , D13back = '::D13back::' , D13mult = '::D13mult::' , D13fill = '::D13fill::' , D13calc = '::D13calc::' , D13organ = '::D13organ::' , D13dist = '::D13dist::' WHERE (Key = ::Key::)"
fp_sDefault="FirstName=&La stName=&So cialSecuri ty=&Birthd ay=&Sex=&S port=&Advi sor=&Class Level=&Pho neNumber=& email=&A1= &A2=&A3_Fa ther=&A3_M other=&A3_ Sibling=&A 3_Children =&A3_Other =&A4=&Adop ted=&First Gen=&B1=&B 2=&B3=&B4= &C1head=&C 1diab=&C1S eiz=&C1con c=&C1unco= &C1ear=&C1 vision=&C1 hear=&C1st roke=&C1as th=&C1alle r=&C1fever =&C1drown= &C1other=& C2=&C3=&C4 =&C5=&C6=& C7=&S1=&C8 =&C9=&C10= &C11=&C12= &C13=&C14= &C15=&C16= &C17=&D1ma th=&D1verb al=&D2=&D3 =&D4elm=&D 4ept=&D4mp =&D4twa=&D 5=&D6=&D7s pec=&D7phy s=&D7limit =&D7emoti= &D7econ=&D 7manag=&D7 task=&D7ho me=&D7lack =&D7bad=&D 7poor=&D7o ther=&D8=& D9anxi=&D9 true=&D9sh ort=&D9spe ll=&D9memo =&D9comp=& D9insuff=& D9match=&D 9long=&D9g ram=&D9bac k=&D9mult= &D9fill=&D 9calc=&D9o rgan=&D9di st=&E1=&E2 =&E3=&E4=& E5=&E6unde r=&E6itegr =&E6loca=& E6read=&E7 =&F1add=&F 1mult=&F1t ime=&F1man ag=&F1geom =&F1subt=& F1divis=&F 1money=&F1 meas=&F2=& F3=&G1=&G2 =&G3=&G4=& G5=&H1verb =&H1lect=& H1misinter p=&H2=&H3= &H4misinte rp1=&H4mis interp2=&H 4misinterp 3=&I1=&I2g et=&I2go=& I2becom=&I 2bud=&I2st ic=&I2test =&I2blurt= &I2shift=& I2bein=&I2 list=&I2ac t=&I2lack= &I2mak=&I2 under=&I2f id=&I2wait =&I2foll=& I2sust=&I2 exces=&I2i nter=&I2lo si=&I2othe r=&I3=&I4= &C101=&C16 1=&C18=&C1 9=&C20in=& C20priv=&C 20opto=&C2 0alco=&C20 relax=&C20 other=&C21 =&D4=&D7el m=&D7ept=& D7mp=&D7tw a=&D9=&D10 =&D11spec= &D11phys=& D11limit=& D11emoti=& D11econ=&D 11manag=&D 11task=&D1 1home=&D11 lack=&D11b ad=&D11poo r=&D11othe r=&D12=&D1 3anxi=&D13 true=&D13s hort=&D13s pell=&D13m emo=&D13co mp=&D13ins uff=&D13ma tch=&D13lo ng=&D13gra m=&D13back =&D13mult= &D13fill=& D13calc=&D 13organ=&D 13dist=&Ke y=0"
fp_sNoRecords="Record updated in table."
fp_sDataConn="eea"
fp_iMaxRecords=1
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Key=3&First Name=202&L astName=20 2&SocialSe curity=202 &Birthday= 202&Sex=20 2&Sport=20 2&Advisor= 202&ClassL evel=202&P honeNumber =202&email =202&A1=20 3&A2=203&A 3_Father=2 02&A3_Moth er=202&A3_ Sibling=20 2&A3_Child ren=202&A3 _Other=202 &A4=203&Ad opted=202& FirstGen=2 02&B1=203& B2=203&B3= 203&B4=203 &C1head=20 2&C1diab=2 02&C1Seiz= 202&C1conc =202&C1unc o=202&C1ea r=202&C1vi sion=202&C 1hear=202& C1stroke=2 02&C1asth= 202&C1alle r=202&C1fe ver=202&C1 drown=202& C1other=20 2&C2=203&C 3=202&C4=2 03&C5=202& C6=203&C7= 202&S1=203 &C8=203&C9 =202&C10=2 02&C11=202 &C12=203&C 13=202&C14 =203&C15=2 02&C16=202 &C17=203&D 1math=202& D1verbal=2 02&D2=203& D3=202&D4e lm=202&D4e pt=202&D4m p=202&D4tw a=202&D5=2 02&D6=203& D7spec=202 &D7phys=20 2&D7limit= 202&D7emot i=202&D7ec on=202&D7m anag=202&D 7task=202& D7home=202 &D7lack=20 2&D7bad=20 2&D7poor=2 02&D7other =202&D8=20 3&D9anxi=2 02&D9true= 202&D9shor t=202&D9sp ell=202&D9 memo=202&D 9comp=202& D9insuff=2 02&D9match =202&D9lon g=202&D9gr am=202&D9b ack=202&D9 mult=202&D 9fill=202& D9calc=202 &D9organ=2 02&D9dist= 202&E1=202 &E2=203&E3 =202&E4=20 2&E5=202&E 6under=202 &E6itegr=2 02&E6loca= 202&E6read =202&E7=20 2&F1add=20 2&F1mult=2 02&F1time= 202&F1mana g=202&F1ge om=202&F1s ubt=202&F1 divis=202& F1money=20 2&F1meas=2 02&F2=202& F3=202&G1= 202&G2=202 &G3=202&G4 =202&G5=20 2&H1verb=2 02&H1lect= 202&H1misi nterp=202& H2=202&H3= 202&H4misi nterp1=202 &H4misinte rp2=202&H4 misinterp3 =202&I1=20 3&I2get=20 2&I2go=202 &I2becom=2 02&I2bud=2 02&I2stic= 202&I2test =202&I2blu rt=202&I2s hift=202&I 2bein=202& I2list=202 &I2act=202 &I2lack=20 2&I2mak=20 2&I2under= 202&I2fid= 202&I2wait =202&I2fol l=202&I2su st=202&I2e xces=202&I 2inter=202 &I2losi=20 2&I2other= 202&I3=203 &I4=203&C1 01=203&C16 1=203&C18= 202&C19=20 3&C20in=20 2&C20priv= 202&C20opt o=202&C20a lco=202&C2 0relax=202 &C20other= 202&C21=20 3&D4=203&D 7elm=202&D 7ept=202&D 7mp=202&D7 twa=202&D9 =203&D10=2 03&D11spec =202&D11ph ys=202&D11 limit=202& D11emoti=2 02&D11econ =202&D11ma nag=202&D1 1task=202& D11home=20 2&D11lack= 202&D11bad =202&D11po or=202&D11 other=202& D12=203&D1 3anxi=202& D13true=20 2&D13short =202&D13sp ell=202&D1 3memo=202& D13comp=20 2&D13insuf f=202&D13m atch=202&D 13long=202 &D13gram=2 02&D13back =202&D13mu lt=202&D13 fill=202&D 13calc=202 &D13organ= 202&D13dis t=202&"
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../../../_fpclass/fp dbrgn1.inc "-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="58809" -->
<p><!--webbot bot="PurpleText" PREVIEW="This is the UPDATE query." --></p>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="FALSE" b-menuformat="FALSE" u-dbrgn2="../../../_fpclas s/fpdbrgn2 .inc" i-groupsize="0" clientside Tag="BODY" startspan preview="<table border=0 width="100%"> <tr> <td bgcolor="#FFFF00" ;><f ont color="#000000"& gt;This is the end of a Database Results region.</font></t d></ tr>< /table> " --><!--#include file="../../../_fpclass/fp dbrgn2.inc "-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="9297" -->
</body>
</html>
Can you tell me exactly where I'd need to set the permissions? Would I do that inside IIS or would I just right click on the certain file(s)? I tried comparing the northwind sample database with mine, and couldn't find any different permissions set, and that one works.
Here is the code for my update.asp page. (Sorry if it's so much, it's a rather large form)
Thanks for your help!
<!--#include File='login.asa'-->
<%
If Session(SiteID) <> true Then
Response.Redirect("Login.a
End If
%>
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a FrontPage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Results -- Updated Record</title>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.
</head>
<body bgcolor="#FFFFFF">
<!--webbot bot="PurpleText" PREVIEW="-Important- If you modify this Database Results region using the Database Results Wizard, then your Database Editor will no longer work. If you accidentally open the Database Results Wizard, simply click Cancel to exit without regenerating the Database Results region." -->
<script Language="JavaScript">
<!--
top.list.location.href = top.list.location.href;
// -->
</script>
<!--webbot bot="DatabaseRegionStart" s-columnnames="Key,FirstNa
<% 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 Results SET FirstName = '::FirstName::' , LastName = '::LastName::' , SocialSecurity = '::SocialSecurity::' , Birthday = '::Birthday::' , Sex = '::Sex::' , Sport = '::Sport::' , Advisor = '::Advisor::' , ClassLevel = '::ClassLevel::' , PhoneNumber = '::PhoneNumber::' , email = '::email::' , A1 = '::A1::' , A2 = '::A2::' , A3_Father = '::A3_Father::' , A3_Mother = '::A3_Mother::' , A3_Sibling = '::A3_Sibling::' , A3_Children = '::A3_Children::' , A3_Other = '::A3_Other::' , A4 = '::A4::' , Adopted = '::Adopted::' , FirstGen = '::FirstGen::' , B1 = '::B1::' , B2 = '::B2::' , B3 = '::B3::' , B4 = '::B4::' , C1head = '::C1head::' , C1diab = '::C1diab::' , C1Seiz = '::C1Seiz::' , C1conc = '::C1conc::' , C1unco = '::C1unco::' , C1ear = '::C1ear::' , C1vision = '::C1vision::' , C1hear = '::C1hear::' , C1stroke = '::C1stroke::' , C1asth = '::C1asth::' , C1aller = '::C1aller::' , C1fever = '::C1fever::' , C1drown = '::C1drown::' , C1other = '::C1other::' , C2 = '::C2::' , C3 = '::C3::' , C4 = '::C4::' , C5 = '::C5::' , C6 = '::C6::' , C7 = '::C7::' , S1 = '::S1::' , C8 = '::C8::' , C9 = '::C9::' , C10 = '::C10::' , C11 = '::C11::' , C12 = '::C12::' , C13 = '::C13::' , C14 = '::C14::' , C15 = '::C15::' , C16 = '::C16::' , C17 = '::C17::' , D1math = '::D1math::' , D1verbal = '::D1verbal::' , D2 = '::D2::' , D3 = '::D3::' , D4elm = '::D4elm::' , D4ept = '::D4ept::' , D4mp = '::D4mp::' , D4twa = '::D4twa::' , D5 = '::D5::' , D6 = '::D6::' , D7spec = '::D7spec::' , D7phys = '::D7phys::' , D7limit = '::D7limit::' , D7emoti = '::D7emoti::' , D7econ = '::D7econ::' , D7manag = '::D7manag::' , D7task = '::D7task::' , D7home = '::D7home::' , D7lack = '::D7lack::' , D7bad = '::D7bad::' , D7poor = '::D7poor::' , D7other = '::D7other::' , D8 = '::D8::' , D9anxi = '::D9anxi::' , D9true = '::D9true::' , D9short = '::D9short::' , D9spell = '::D9spell::' , D9memo = '::D9memo::' , D9comp = '::D9comp::' , D9insuff = '::D9insuff::' , D9match = '::D9match::' , D9long = '::D9long::' , D9gram = '::D9gram::' , D9back = '::D9back::' , D9mult = '::D9mult::' , D9fill = '::D9fill::' , D9calc = '::D9calc::' , D9organ = '::D9organ::' , D9dist = '::D9dist::' , E1 = '::E1::' , E2 = '::E2::' , E3 = '::E3::' , E4 = '::E4::' , E5 = '::E5::' , E6under = '::E6under::' , E6itegr = '::E6itegr::' , E6loca = '::E6loca::' , E6read = '::E6read::' , E7 = '::E7::' , F1add = '::F1add::' , F1mult = '::F1mult::' , F1time = '::F1time::' , F1manag = '::F1manag::' , F1geom = '::F1geom::' , F1subt = '::F1subt::' , F1divis = '::F1divis::' , F1money = '::F1money::' , F1meas = '::F1meas::' , F2 = '::F2::' , F3 = '::F3::' , G1 = '::G1::' , G2 = '::G2::' , G3 = '::G3::' , G4 = '::G4::' , G5 = '::G5::' , H1verb = '::H1verb::' , H1lect = '::H1lect::' , H1misinterp = '::H1misinterp::' , H2 = '::H2::' , H3 = '::H3::' , H4misinterp1 = '::H4misinterp1::' , H4misinterp2 = '::H4misinterp2::' , H4misinterp3 = '::H4misinterp3::' , I1 = '::I1::' , I2get = '::I2get::' , I2go = '::I2go::' , I2becom = '::I2becom::' , I2bud = '::I2bud::' , I2stic = '::I2stic::' , I2test = '::I2test::' , I2blurt = '::I2blurt::' , I2shift = '::I2shift::' , I2bein = '::I2bein::' , I2list = '::I2list::' , I2act = '::I2act::' , I2lack = '::I2lack::' , I2mak = '::I2mak::' , I2under = '::I2under::' , I2fid = '::I2fid::' , I2wait = '::I2wait::' , I2foll = '::I2foll::' , I2sust = '::I2sust::' , I2exces = '::I2exces::' , I2inter = '::I2inter::' , I2losi = '::I2losi::' , I2other = '::I2other::' , I3 = '::I3::' , I4 = '::I4::' , C101 = '::C101::' , C161 = '::C161::' , C18 = '::C18::' , C19 = '::C19::' , C20in = '::C20in::' , C20priv = '::C20priv::' , C20opto = '::C20opto::' , C20alco = '::C20alco::' , C20relax = '::C20relax::' , C20other = '::C20other::' , C21 = '::C21::' , D4 = '::D4::' , D7elm = '::D7elm::' , D7ept = '::D7ept::' , D7mp = '::D7mp::' , D7twa = '::D7twa::' , D9 = '::D9::' , D10 = '::D10::' , D11spec = '::D11spec::' , D11phys = '::D11phys::' , D11limit = '::D11limit::' , D11emoti = '::D11emoti::' , D11econ = '::D11econ::' , D11manag = '::D11manag::' , D11task = '::D11task::' , D11home = '::D11home::' , D11lack = '::D11lack::' , D11bad = '::D11bad::' , D11poor = '::D11poor::' , D11other = '::D11other::' , D12 = '::D12::' , D13anxi = '::D13anxi::' , D13true = '::D13true::' , D13short = '::D13short::' , D13spell = '::D13spell::' , D13memo = '::D13memo::' , D13comp = '::D13comp::' , D13insuff = '::D13insuff::' , D13match = '::D13match::' , D13long = '::D13long::' , D13gram = '::D13gram::' , D13back = '::D13back::' , D13mult = '::D13mult::' , D13fill = '::D13fill::' , D13calc = '::D13calc::' , D13organ = '::D13organ::' , D13dist = '::D13dist::' WHERE (Key = ::Key::)"
fp_sDefault="FirstName=&La
fp_sNoRecords="Record updated in table."
fp_sDataConn="eea"
fp_iMaxRecords=1
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Key=3&First
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../../../_fpclass/fp
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="58809" -->
<p><!--webbot bot="PurpleText" PREVIEW="This is the UPDATE query." --></p>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="FALSE" b-menuformat="FALSE" u-dbrgn2="../../../_fpclas
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="9297" -->
</body>
</html>
ASKER
Any Ideas? I need help!!
One of your field names, "KEY", is a reserved word in Access. Try changing it to something else, like myKEY, etc. and try again.
For reference, here's the complete list:
http://support.microsoft.com:80/support/kb/articles/Q109/3/12.asp&NoWebContent=1
For reference, here's the complete list:
http://support.microsoft.com:80/support/kb/articles/Q109/3/12.asp&NoWebContent=1
ASKER
The Key part wasn't a problem. I renamed it. Here is my code. It still gives me the error:
Database Results Wizard Error
The operation failed. If this continues, please contact your server administrator.
Any Ideas? Thanks!
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a FrontPage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<table width="100%" border="1">
<thead>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames s-columntypes s-dataconnection="eea" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource s-displaycolumns s-criteria s-order s-sql="UPDATE RESULTS<br>SET Firstname = '::FirstName::', Lastname='::LastName::'< ;br>Whe re student_key=::student_key: :" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields="FirstName =&Last Name=& student_ke y=" s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="5" botid="0" u-dblib="_fpclass/fpdblib. inc" u-dbrgn1="_fpclass/fpdbrgn 1.inc" u-dbrgn2="_fpclass/fpdbrgn 2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" ; width="100%"> <font color="#000000"& gt;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>" startspan --><!--#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 RESULTS SET Firstname = '::FirstName::', Lastname='::LastName::' Where student_key=::student_key: :"
fp_sDefault="FirstName=&La stName=&st udent_key= "
fp_sNoRecords="<tr><td colspan=16 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="eea"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&"
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.in c"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="25422" --><!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn 2.inc" i-groupsize="5" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" ; width="100%"> <font color="#000000"& gt;This is the end of a Database Results region.</font></t d></ tr>< TR>< TD VALIGN=MIDDLE COLSPAN=64><NOBR> <INPUT TYPE=Button VALUE=" |< "><INPUT TYPE=Button VALUE=" < "><INPUT TYPE=Button VALUE=" > "><INPUT TYPE=Button VALUE=" >| "> [1/5]</NOBR><BR&g t;</td& gt;</tr >" startspan --><!--#include file="_fpclass/fpdbrgn2.in c"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>
</body>
</html>
Database Results Wizard Error
The operation failed. If this continues, please contact your server administrator.
Any Ideas? Thanks!
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a FrontPage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<table width="100%" border="1">
<thead>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames s-columntypes s-dataconnection="eea" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource s-displaycolumns s-criteria s-order s-sql="UPDATE RESULTS<br>SET Firstname = '::FirstName::', Lastname='::LastName::'<
<% 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 RESULTS SET Firstname = '::FirstName::', Lastname='::LastName::' Where student_key=::student_key:
fp_sDefault="FirstName=&La
fp_sNoRecords="<tr><td colspan=16 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="eea"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&"
fp_iDisplayCols=16
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.in
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="25422" --><!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>
</body>
</html>
Hi,
Try putting:
WHERE (student_key = ::student_key::)
hhammash
Try putting:
WHERE (student_key = ::student_key::)
hhammash
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you sure that you have permissions to write to the database on the server? If you don't have permissions you won't be able to do it.
If you do have permissions, would you please post your SQL here?
Thanks
hhammash