Delete a specific record.

Results 1 to 2 of 2

Thread: Delete a specific record.

  1. #1
    Reet Guest

    Default Delete a specific record.

    I&#039ve got a submission form page that allows the user to enter the ItemID. Upon clicking the "Delete" button, it will post to the Delete page.<BR><BR>On the Delete page, I&#039ve used request.form("ItemID").<BR>But there&#039s the error on this statement:<BR><BR>DataCmd.Commandtext = "DELETE * From students Where Item_Id = Request.Form("ItemId")"<BR><BR>ItemId is a auto number field.<BR>Anyone can help me correct it?

  2. #2
    Shawn Clabough Guest

    Default RE: Delete a specific record.

    Try <BR><BR>DataCmd.Commandtext = "DELETE * From students Where Item_Id = " & Request.Form("ItemId")<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •