Insert record AND post form

Hi,
I'm sure this is a common problem, I could not find anything
relating to it in search here so...
I have a form, which I insert data into database, fine.
I then want to post the same form to paypal payment page.
I've got paypal set-up fine with hidden fields in the form
etc. However, how can I make the insert into database and then post
the form to paypal ? should I use onClick event to trigger insert
and action to post to paypal ?
using asp vb
Any advise appreciated.

It'd be a 2 page process. On page 1, you submit the form and
insert record
into database. Then redirect to page 2. On page 2, you'd
submit the form on
load and post it to paypal.
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004

Similar Messages

  • Insert record and email

    Hello
    How do I insert a record with the image filename into a database, then send the data just entered as an email?
    I was able to do this before but now this new CS3 seems so complicated!
    I am unable to just use an insert record behavior then add form fields and change the insert or update recored behavior like before.
    Please can I be shown some actual working tutorials on this?
    This search function on this forum does not work as I tried to search for this exact statement "insert record and email" and no records appear.
    Cheers

    Ok, here is the entire page:
    <br />
    <br /><?php require_once('Connections/cnreviva.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_cnreviva = new KT_connection($cnreviva, $database_cnreviva);<br /><br />$editFormAction = $_SERVER['PHP_SELF'];<br />if (isset($_SERVER['QUERY_STRING'])) {<br />  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);<br />}<br /><br />// *** Mail form as Text format ***<br />if (isset($_POST["FX_sendForm"]) && $_POST["FX_sendForm"] == "frmupload") {<br />  $format = strtolower("Text");<br />  if ($format != "html") $format = "plain";<br />  $filefield = "uploadfile";<br />  $top = "\r\n";<br />  $body = "\r\n";<br />  $excludeArray = array("button","button_x","button_y","uploadfile","FX_sendForm","MM_insert","MM_update"); <br />  $i = 0;<br />  while ($i<sizeof($_POST)) {<br />    if (!in_array(key($_POST),$excludeArray)) {<br />      if (is_array(pos($_POST))) {<br />        $postVar = implode(", ", pos($_POST));<br />      } else {<br />        $postVar = pos($_POST);<br />      } <br />      $body .= strtoupper(key($_POST)) . ": " . stripslashes($postVar) . "\r\n";<br />    }<br />    $i++;<br />    Next($_POST);<br />  }  <br />  $bottom = "\r\n";<br />  $from = $_POST["email"];<br />  // set parameters<br />  $recipient = "[email protected]";<br />  $subject = "Test";<br />  $message = $top . $body . $bottom;<br />  // set extra parameters<br />  $headers = "From:" . $from . "\r\n";<br />  $headers .= "Cc:\r\n";<br />  $headers .= "Bcc:\r\n";<br />  require_once("FXInc/FX_mailForm_php.inc");<br />  // send all<br />  mail($recipient, $subject, $message, $headers);<br />  $body = urlencode(str_replace("\r\n", "<br>", $body));<br />  $redirect = "thankyou.php";<br />  if ($redirect) header("Location: " . $redirect);<br />}<br /><br />// Make an insert transaction instance<br />$ins_tblfeedback = new tNG_insert($conn_cnreviva);<br />$tNGs->addTransaction($ins_tblfeedback);<br />// Register triggers<br />$ins_tblfeedback->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_tblfeedback->registerTrigger("END", "Trigger_Default_Redirect", 99, "thankyou.php");<br />// Add columns<br />$ins_tblfeedback->setTable("tblfeedback");<br />$ins_tblfeedback->addColumn("name", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("email", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("city", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("country", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("shoe_size", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("feedback", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("activate", "STRING_TYPE", "POST", "", "N");<br />$ins_tblfeedback->addColumn("photo", "FILE_TYPE", "FILES", "uploadfile", "");<br />$ins_tblfeedback->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rstblfeedback = $tNGs->getRecordset("tblfeedback");<br />$row_rstblfeedback = mysql_fetch_assoc($rstblfeedback);<br />$totalRows_rstblfeedback = mysql_num_rows($rstblfeedback);<br />?>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <script src="includes/common/js/base.js" type="text/javascript"></script>
    <br />
    <script src="includes/common/js/utility.js" type="text/javascript"></script>
    <br />
    <script src="includes/skins/style.js" type="text/javascript"></script>
    <br />
    <br />
    <br />
    <br />
    <form action="%3C?php%20echo%20$editFormAction;%20?%3E" method="post" name="frmupload" id="frmupload">
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <table width="300" border="0" cellspacing="0" cellpadding="5">
    <tr>
    <td>Name
    <br />
    <br />
    <input type="text" name="name" id="name" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Email
    <br />
    <br />
    <input type="text" name="email" id="email" length="20" value="" /></td>
    </tr>
    <tr>
    <td>City
    <br />
    <br />
    <input type="text" name="city" id="city" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Country
    <br />
    <br />
    <input type="text" name="country" id="country" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Image
    <br />
    <br />
    <input name="uploadfile" type="file" id="uploadfile" /></td>
    </tr>
    <tr>
    <td>&#160;</td>
    </tr>
    <tr>
    <td>
    <?php<br /> echo $tNGs->getErrorMsg();<br />?>
    <input type="submit" name="button" id="button" value="Submit" />
    </td>
    </tr>
    </table>
    <br />
    <input type="hidden" name="FX_sendForm" value="frmupload" />
    <br /></form>
    <br />
    <p>&#160;</p>
    <br />
    <br />

  • Insert Record and Redirect Data

    I have a website where we are adding articles to categories.
    I need to be able to have a user add an article and then have the
    option to add that same article into another category.
    I'm using the INSERT RECORD behavior now but I'm looking for
    an extension that will INSERT RECORD plus redirect the record/data
    to another page so the user can add it to another category.

    I found this in the upload scripts read me file:
    The clsUpload object contains public functions and methods
    which enable you to upload and save files to a web server using
    pure VBScript.
    Read only
    Data Type: Dictionary Collection
    Syntax: object.Form
    Returns a Forms collection consisting of all the Form objects
    parsed from the HTTP header.
    This collection contains all the HTML form elements which are
    not "Files"
    This collection should be used instead of the typical
    "request.form" method to access data from the other form elements
    (if you decide to combine "file" upload elements with other form
    element types, like checkboxes, text boxes, drop-down lists,
    textareas). Why? Because the form data is posted using
    "multipart/form-data" encoding (and needs to be retrieved like
    binary data instead of text data) and therefore the typical
    "request.form" method isn't effective.
    I changed request.form to clsUpload.form but it still did not
    work.

  • Insert records from user form to multiple tables in same database

    Hi Experts, I need your help. I have a form that has multiple text fields that I need to insert the records to their each respective table. For example: The first name field needs to go the the name table, address goes to a seperate table, phone goes to a seperate table and so on.
    Is this possible to do?
    Thanks Much
    Sham

    The same for ASP, JSP or PHP.  Just the code syntax is different for each language.  Are you using MySQL, Access or ?
    In any case, create the three recordsets on the database and use insert queries.  If you don't know what one is, google insert query and you will see the syntax. 
    Here is a good example out on the web
    http://www.stardeveloper.com/articles/display.html?article=2000032601&page=1
    In your case you would get the values for the inserts from the form data and only need to open the database connection once.
    Good luck.
    Walt
    B & B Photography

  • CS4 Insert Record behavior when form spans pages

    Hello!!
    I have a form that spans pages, carrying the values via the session from page to page.
    The insert record behavior only picks up the values from the page in which I am inserting the behaviour (which I understand)
    Can I use the behavior "wizards" to create an insert that will use my session variables or do I have to do it through a script?
    I am relatively new to web coding (php) so any help would be appreciated.
    Thanks to all!! Have a great day...
    Rich

    I think I discovered the answer, but I would appreciate if someone can confirm if it's the right way or wrong way.
    I made hidden input fields, and made the default value the contents of the session variable for each field I brought over from previous pages.
    Seems to work, but is this a good way of doing it or a n00b way?
    Thanks,
    Rich

  • Inserting records from Infopath forms library to a SQL table

    Hi,
    I have a requirement where i need to populate records from a Infopath forms library to a SQL table in a database. We have written a console app to achive the same. However we are encountering performance issues when inserting records in the database. The
    way we retreive information from Infopath forms library is through a CAML query and then insert record by record in database. Is their a better and faster way to acheive this?
    Can someone pls help? 
    thanks,
    Anand
    Thanks and Regards, Anand R. Deshpande

    Hello Anand,
    Could you share you console application code? Also tell us when you face performance issue. I mean is there any problem in accessing infopath form or you are facing problem with only console application.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • One submit button - Insert Record and Update Record

    I have a form in Dreamweaver CS3, using ASP VBScript and an
    Access database. When submitted, the form inserts a record into the
    table CountDate01. The record comes from a hidden field that gets
    its value from a field within that same table. There is no other
    data entered by the user in any other form fields. The info the
    form submits comes from: rsDate1Avail.Fields.Item("Date01").Value
    I would like if the same Submit button could also update a
    record in a second table (registrants) at the same time. I would
    like to submit the same info that comes from the hidden field to
    the second table. So it would be two actions occurring that both
    insert and update in 2 different tables from one submit button. Is
    this possible?
    Here is the code for the existing form action:
    <%
    If (CStr(Request("MM_insert")) = "submitDate1") Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_MumConn_STRING
    MM_editCmd.CommandText = "INSERT INTO CountDate01 (Date01)
    VALUES (?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 135, 1, -1,
    MM_IIF(Request.Form("hiddenField"), Request.Form("hiddenField"),
    null)) ' adDBTimeStamp
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "form_FT_4.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    %>

    >I have a form in Dreamweaver CS3, using ASP VBScript and
    an Access
    >database.
    > When submitted, the form inserts a record into the table
    CountDate01. The
    > record comes from a hidden field that gets its value
    from a field within
    > that
    > same table. There is no other data entered by the user
    in any other form
    > fields. The info the form submits comes from:
    > rsDate1Avail.Fields.Item("Date01").Value
    >
    > I would like if the same Submit button could also update
    a record in a
    > second
    > table (registrants) at the same time. I would like to
    submit the same info
    > that
    > comes from the hidden field to the second table. So it
    would be two
    > actions
    > occurring that both insert and update in 2 different
    tables from one
    > submit
    > button. Is this possible?
    Yes. Use a command on the redirect page to update the data.
    No, wait, the
    ASP COMMAND IMPLEMENTATION IS BROKEN IN CS3, and remains
    broken in CS4. So
    sorry, you'll have to hand-code it.
    Sorry, I'm just a little bit bitter about the callous
    attitude Adobe has
    shown in fixing the KNOWN BUGS IN THEIR SOFTWARE.

  • Insert record and return the primary key

    Okay, I need to insert a record into a MSSQL database and return the primary key of that record. Im using the following code which is obviously wrong as I'm getting either 'NULL' or 'com.microsoft.jdbc.base.BaseResultSet@1d520c4' returned depending on the ways I've tried. The primary key is an int value called clientID which is incremented by one each time a new record is added.
    // set the prepared statement
                String sql="INSERT INTO Client(username, country, clientIP, browser, os) VALUES(?,?,?,?,?)";
                PreparedStatement pstmt = conn.prepareStatement(sql);
                pstmt.setString(1, inUserName);
                pstmt.setString(2, inCountry);
                pstmt.setString(3, inClientIP);
                pstmt.setString(4, inBrowser);
                pstmt.setString(5, inOS);
                // Insert the row
                pstmt.executeUpdate();
                Statement stmt = conn.createStatement();
                ResultSet rs = stmt.executeQuery("SELECT SCOPE_IDENTITY()");
                System.out.println("Result "+rs);The primary key value is needed so that it can be used as a foregin key in another table. Am I going about this the correct way? Any help, pointers or code fixing would be appreciated.....

    Yes. I tried this way but I only ever get the answer
    of 0 when i print our the result! Not really sure
    whats happening.That's because you don't print a ResultSet like that. In order to get the key out, you have to do this:
    int key = 0;
    while (rs.next())
        key = rs.getInt(1);What were you thinking with your code?
    You might want to do this in a transaction. If the INSERT fails, you'll want to roll back.
    The "select @@identity" is correct for M$ Access, SQL Server, and Sybase. I believe it's also correct for MySQL, but I'm not 100% certain of that.
    %

  • How to use the insert record and check username function?

    Hi guys.
    I have an error that has me stumped.
    I have a form that inserts text from a text field into a
    mysql database and I have added a check user name function to check
    if this number already exists.
    Here's the page
    http://www.thechallenge.net.au/redemption2.php
    The error I get when using the page on the web is this
    Duplicate entry '' for key 1
    Can anyone help with this?

    ottoman007 wrote:
    I have tried the COUNTIF I input my formula =COUNTIF(6C:6M,">t") to the right of the row that I want to count and I get a red triangle and it says it isn't a valid reference. ... I am boggled how to do this.
    Badunit wrote:
    One parameter is the range (your row or column of checkboxes) and the other is the condition you want to count, which is TRUE.
                         =COUNTIF(6C:6M,TRUE)
    Regards,
    Barry

  • Insert record and report

    Hi,
    im my app i have a table NOTIFICATION with some normal fields and a CLOB field. When i press Insert button i want to be able to insert the record (that's easy) and in the CLOB field i want to store the report file generated if i printed the NOTIFICATION. I do not want to preview the report. I only want to insert the record (including the automatic generated report in the CLOB field). Is this possible?
    Best regards,
    Bruno Martins

    Bruno,
    I would generate the Reports to a file on the database server and try a PLSQL program in the database to upload the file.
    Frank

  • CRMM_BUT_MKTPERM insert record and RECORD_GUID

    Hi,
    I need to insert marketing permissions into CRM using the Fm CRMM_BUT_MKTPERM. While testing its fine for updating/deleting existing data within table crmm_but_mktperm. However to insert you need to provide a unique record_guid (table key). Its not clear how you achieve this and naturally each one needs to be unique. Given that i know the contact in CRM how can i generate/reserve this number for each row that i need to create. I need to create (probably in batches) but say 20000 at a time. Any help much appreciated

    Hi,
    I need to insert marketing permissions into CRM using the Fm CRMM_BUT_MKTPERM. While testing its fine for updating/deleting existing data within table crmm_but_mktperm. However to insert you need to provide a unique record_guid (table key). Its not clear how you achieve this and naturally each one needs to be unique. Given that i know the contact in CRM how can i generate/reserve this number for each row that i need to create. I need to create (probably in batches) but say 20000 at a time. Any help much appreciated

  • How to insert autoincrement record and query it with multiple keys

    Hi all,
    I am not familiar with BerkeyleyDB, I am now doing a project that needs to insert records and then query it out with multiple keys at later time. Since there is no field that can be distinct primary key, I want to user DbSequence as auto increment primary key to db, and set other index keys as secondary db, then using join cursor to do query with multiple keys.
    I don't know how to use DbSequence, can anyone direct me to a example of using DbSequence as auto increment primary key?
    Regards
    -Bruce

    I figured out the method to insert record with auto increment primary key. I listed the code block below:
    char m_SeqNamePositions[32] = "MyPositions";
    DbSequence *m_pSeqPositions;
    m_pDBPositions = new Db(NULL, 0);
              m_pDBPositions->open(NULL, pszFileName, szFileName, DB_BTREE, DB_CREATE, 0);          // 无数据文件
              m_pSeqPositions = new DbSequence(m_pDBPositions, 0);
              Dbt key((void *)m_SeqNamePositions, (u_int32_t)strlen(m_SeqNamePositions));
              m_pSeqPositions->open(NULL, &key, DB_CREATE);
    db_seq_t SeqNum;
         m_pSeqPositions->get(0, 1, &SeqNum, 0);
         Dbt key((void *)&SeqNum, (u_int32_t)sizeof(SeqNum));
         Dbt data(pRecord, sizeof(*pRecord));
         return m_pDBPositions->put(NULL, &key, &data, DB_NOOVERWRITE);
    m_pSeqPositions->close(0);
              m_pDBPositions->close(0);
    delete m_pSeqPositions;
    delete m_pDBPositions;
              m_pDBPositions = NULL;

  • Error in insertion record

    hi
    i have created a table in access
    and trying to insert record through this form
    but when i compile i get an error
    can any one tell me why i am getting this error
    <html>
    <head>
    <title>
    updatephonebook
    </title>
    </head>
    <jsp:useBean id="updatephonebookBeanId" scope="session" class="updatephonebook.updatephonebookBean" />
    <jsp:setProperty name="updatephonebookBeanId" property="*" />
    <p>update database content
    <form action="updatephonebook.jsp" method="post">
    Last Name:<input type=text name=lastparam><br>
    First Name:<input type=text name=firstparam><br>
    Phone Number:<input type=text name=phoneparam><br>
    <input type=Submit value="add to data base">
    </form>
    <p> content of phone book database:
    <table border=1 cellpadding=0 cellspacing=0>
    <tr><td> Last </td>
    <td> First </td>
    <td> Phone </td>
    </tr>
    <%
    Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
    java.sql.Connection = java.sql.DriverManager.getConnection("jdbc:odbc:updatephonebook");
    java.sql.Statement statement = connection.createStatement();
    Enumeration parameters = request.getParameterNames();
    if(parameters.hasMoreElements()){
    String LastValue = request.getParameter("lastparam");
    String FirstValue = request.getParameter("firstparam");
    String PhoneValue = request.getParameter("phoneparam");
    statement.executeUpdate("INSERT INTO updatephonebook (\"LAST\",\"FIRST\",\"PHONE\") VALUES
    ('"+LastValue+"','"+FirstValue+"','"+PhoneValue+"') ");
    java.sql.ResultSet columns = statement.executeQuery(
    "SELECT * FROM updatephonebook");
    while(columns.next()){
    String last = columns.getString("LAST");
    String first = columns.getString("FIRST");
    String phone= columns.getString("PHONE");%>
    <TR>
    <TD> <%=last %></td>
    <TD> <%=first %></td>
    <TD> <%=phone %></td>
    </tr>
    <%}%>
    </table>
    </html>
    "updatephonebook.jsp": Error #: 106 : unclosed character literal at line 33

    <html>
    <head>
    <title>
    updatephonebook
    </title>
    </head>
    <jsp:useBean id="updatephonebookBeanId"
    scope="session"
    class="updatephonebook.updatephonebookBean" />
    <jsp:setProperty name="updatephonebookBeanId"
    property="*" />
    <p>update database content
    <form action="updatephonebook.jsp" method="post">
    Last Name:<input type=text name=lastparam><br>
    First Name:<input type=text name=firstparam><br>
    Phone Number:<input type=text name=phoneparam><br>
    <input type=Submit value="add to data base">
    </form>
    <p> content of phone book database:
    <table border=1 cellpadding=0 cellspacing=0>
    <tr><td> Last </td>
    <td> First </td>
    <td> Phone </td>
    </tr>
    <%
       Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
    java.sql.Connection =
    =
    java.sql.DriverManager.getConnection("jdbc:odbc:update
    phonebook");
    java.sql.Statement statement =
    = connection.createStatement();
    Enumeration parameters =
    = request.getParameterNames();
       if(parameters.hasMoreElements()){
    String LastValue =
    ue = request.getParameter("lastparam");
    String FirstValue =
    ue = request.getParameter("firstparam");
    String PhoneValue =
    ue = request.getParameter("phoneparam");
    statement.executeUpdate("INSERT INTO
    INTO updatephonebook (\"LAST\",\"FIRST\",\"PHONE\")
    VALUES
    ('"+LastValue+"','"+FirstValue+"','"+PhoneValue+"')
    java.sql.ResultSet
    java.sql.ResultSet columns =
    columns = statement.executeQuery(
    "SELECT * FROM
                      "SELECT * FROM updatephonebook");
                                 while(columns.next()){
    String last =
    String last =
    String last = columns.getString("LAST");
    String first =
    String first =
    tring first = columns.getString("FIRST");
    String phone=
    String phone=
    String phone= columns.getString("PHONE");%>
                                 <TR>
                                 <TD> <%=last %></td>
                                 <TD> <%=first %></td>
                                 <TD> <%=phone %></td>
                                 </tr>
                                 <%}%>
                                 </table>
                                                 </html>Best I can do, it still looks like a mess. Can you do no better, it look awful and no one is going to read it.
    The Great Vagabon Monster

  • XSQL error when trying to insert record

    hi,
    I encounter a problem using INSERT statement in xsql:query action. If I try to use INSERT statement in my xsql page like this:
    <xsql:ze_action bean="TaskentryIn">
    <xsql:query>
    INSERT
    Grundtab( Datum,Startzeit,Endzeit)
    VALUES
    ('{@date}',{'@begin}','{@ende}')
    </xsql:query>
    </xsql:ze_action>
    I always get this xsql-error:
    Statement.executeQuery - No result sets were produced by 'INSERT...'
    So far so good, I think this shouldn't be an error rather a warning.
    But this is not my primary problem.
    Anyway the record is inserted in the DB. But since I call the above <xsql:query>, from within my own action handler, I call a sendRedirect() to my next page after the <xsql:query> tag was processed.
    After sendRedirect(), when I am on my next page, I check the DB for the inserted records, and it shows up that the insert was made two times, so I have two identically records in my DB.
    If I am not sendRedirect() to the next xsql page, then the insert is only made once. So I assume that there is a problem if an xsql-error occurs and afterwards a sendRedirect().
    I am using the same way to make my SELECT statements and I dont have any trouble with them. Only when I use INSERT.
    Any adive or help is appreciated.
    Peter

    <xsql:query> is only for queries.
    Use <xsql:dml> for a DML statement.

  • Delete inserted record

    I bulid trigger in tabel and check condition, if for example check_statment = X i need to delete inserted record (that mead not insert record) and when check_statment = Y then insert record in table, i try to write delete statment and rollback but there is error appear that the current record are reserved.
    How i can solve it.

    1. Triggers cannot Issues ROLLBACK, SAVEPOINT, COMMIT statements.
    2. I guess you are trying to avoid duplicate records, Create a unique index on the key(col1,col2) which you want to prevent duplicates on.
    3. Or you can Add a column Flag Chr(1) to your table. While inserting you allow the records to get inserted, but based on your condition change the Flag to 'D' - deleted , 'A' -active. Build a View which the user uses for application filtering out the 'D'eleted records.
    Does this look like what you are trying to do !
    Ss

Maybe you are looking for

  • Video Playback - Freezes Nano

    I love being an early adopter.... Had video playing fine on my previous 3G Nano, got a new 4G one on release but when trying it for the first time at teh guym, noticed that the first film i tried ot play froze after a few minutes , I tried again and

  • PO Ship to Address report

    Hi Experts Is there such a report that will tell me PO Number and what the ship to address is? Can t seem to find one Thanks in advance P

  • Seeing a winXP machine from the MAC

    I have a LAN with six machines (3 MACs, 3 WinXP) and several printers. Sometimes I can tack a .local suffix onto a Windows XP machine's name and the mac finds it without problem. Other times I can't get to the machine without looking up the IP addres

  • HT1386 synced with a another user account

    When I tried to re-sync my iPhone 4S in iTunes and I click the boxes to sync contacts and calendar I get a message saying that this is synced with a another user account.  I only know about one account I have which I used to sync this up before any h

  • Get colors from image

    Is there any way to get the colors from an image in photoshop? Ideally, I would like a simple process to get a swatch collection from an existing image. Thanks, CFH