Make your changes to the gray colored code, not the maroon, and save your
changes while you're still in HTML/Code view. Depending on your version of
FP, you may need to scroll waaaaaaaaaaay over to the right to find the SQL
statement in the gray colored code.
--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web:
http://www.spiderwebwoman.com/resources/
blog:
http://msmvps.com/spiderwebwoman/category/321.aspx
ptrader <(E-Mail Removed)> wrote:
> I'm using FP created forms to put data in an Access db. One of the
> results
> wizards I've put together draws the data forward based on a specific
> field
> (JudgeNumber)
>
> With a results wizard, the user is able to select an edit button to
> go to an
> edit page where they may edit the record.
>
> However, in a small number of cases, the record being pulled to the
> edit
> page is NOT the one originally displayed.
>
> After studying on it...I see the POST code for the button only
> references
> one field (EntryNumber) where it actually takes two fields to make
> the record
> unique (EntryNumber and JudgeNumber).
>
>
> So, I believe my form button has to change from:
>
> <form method="POST" action="../Scoring/editor/edit.asp">
> <input type="hidden" name="EntryNumber"
> value="<%=FP_FieldHTML(fp_rs,"EntryNumber")%>">
> <p><input type="submit" value=" Edit " name="B2"></p>
> </form>
>
> to:
>
> <form method="POST" action="../Scoring/editor/edit.asp">
> <input type="hidden" name="JudgeNumber"
> value="<%=FP_FieldHTML(fp_rs,"JudgeNumber")%>">
> <input type="hidden" name="EntryNumber"
> value="<%=FP_FieldHTML(fp_rs,"EntryNumber")%>">
> <p><input type="submit" value=" Edit " name="B2"></p>
> </form>
>
> However, the error still occurs on specific records.
>
> I am thinking that my edit form SQL needs adjustment as well. My
> theory is
> that this code:
>
> <%
> fp_sQry="SELECT * FROM ScoreTable WHERE EntryNumber = ::EntryNumber::"
> fp_sDefault="EntryNumber=0"
> fp_sNoRecords="No records returned."
> fp_sDataConn="judging1"
> fp_iMaxRecords=1
> fp_iCommandType=1
> fp_iPageSize=0
> fp_fTableFormat=False
> fp_fMenuFormat=False
> fp_sMenuChoice=""
> fp_sMenuValue=""
>
fp_sColTypes="&EntryNumber=3&JudgeNumber=3&UsabilityScore=3&UsabilityComment
s=203&AppearanceScore=3&AppearanceComments=203&ContentScore=3&ContentComment
s=203&BonusScore=3&BonusComment=203&SubScore=202&TotalScore=3&LikeMost=203&N
eedImprovement=203&"
> fp_iDisplayCols=14
> fp_fCustomQuery=False
> BOTID=0
> fp_iRegion=BOTID
> %>
>
>
> Needs the SELECT to actually read:
>
> fp_sQry="SELECT * FROM ScoreTable WHERE EntryNumber = ::EntryNumber::
> AND
> JudgeNumber = ::JudgeNumber::"
>
> However, if I manually edit the code in the FP code view, it is not
> saved
> since the code was originally produced by a component, it will not
> save the
> data.
>
> However, the page very clearly states that I can't change the database
> results wizard either, because that would render the Database Editor
> unusuable.
>
> If anyone actually understands what I am trying to accomplish here
> has an
> answer on how to "get around" the component auto regression issue on
> manual
> entry of code, please advise?
>
> Or if you know a way out of the hole, I'd appreciate a bone.
>
> Thanks,
> Pam