Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 2nd, 2007, 08:22 AM
Authorized User
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default move record to another table in same DB

Help me solve this pls
on the update page(the update-page is a pop-up) I have two radiobuttons with the values 'yes' and 'no'. If you select 'yes' than the record should move to the history table. I have the following code that doesn't work and the worse and don't get any errors:

if akkoord=request.form("akkoord")="ja" then
sqlString = "INSERT INTO geschiedenisAanpassingen" &_
"(prioriteit, stat, aanpassing, commentaar, opleverdatum, toevoeger, " &_
"ap_toegevoegdOp, opleverdatumDD, opleverdatumMM, opleverdatumJJJJ ) VALUES ( " &_
    ToSql(prioriteit) & "," &_
    ToSql(stat) & "," &_
    ToSql(aanpassing) & "," &_
    ToSql(commentaar) & "," &_
    ToSql(opleverdatum) & "," &_
    ToSql(toevoeger) & "," &_
    ap_toegevoegdOp & "," &_
    ToSql(opleverdatumDD) & "," &_
    ToSql(opleverdatumMM) & "," &_
    ToSql(opleverdatumJJJJ) & ")"
    Conn.Execute (sqlString)
end if
    response.end


the radiobutton code looks like this:

<input type="radio" checked="checked" value="nee" title="Nee" id="nee" name="akkoord">Nee</input>
<input type="radio" value="ja" title="Ja" id="ja" name="akkoord">Ja</input>

~~~~~~~~~~~~~~~~~~~~~~
What goes around comes around
__________________
~~~~~~~~~~~~~~~~~~~~~~
What goes around comes around
 
Old January 2nd, 2007, 01:14 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Cross post: http://p2p.wrox.com/topic.asp?TOPIC_ID=54163

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old January 3rd, 2007, 07:50 AM
Authorized User
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how can I delete this topic?

~~~~~~~~~~~~~~~~~~~~~~
What goes around comes around





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move rows in a table bucky483 Javascript How-To 10 March 27th, 2017 12:57 AM
move to particular record number in recordset goodrags VB How-To 3 June 27th, 2006 09:11 PM
How do I write out a record to an SQL db table? furjaw Visual Basic 2005 Basics 1 April 26th, 2006 05:16 PM
loop value move to table mateenmohd Classic ASP Basics 9 August 21st, 2005 06:12 PM
How to move next Record qazi_nomi Classic ASP Basics 5 August 13th, 2004 05:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.