check box deletion

Results 1 to 2 of 2

Thread: check box deletion

  1. #1
    Join Date
    Dec 1969

    Default check box deletion

    How I can delete checkbox from recordset through an ASP form ?Just like inbox-when you are deleting mails from mail box.

  2. #2
    Join Date
    Dec 1969

    Default RE: check box deletion

    I think this is what you are asking but not sure.<BR><BR>&#060;input type="checkbox" name="removeitems" value="&#060;%=RS("recordid")%&#062;"&#062;<BR><BR >so in your form you have multiple checkboxes with the same name but each holds a value to a recordid<BR><BR>then on the next page<BR><BR>Dim StrRemove<BR>StrRemove = Request.form("RemoveItems")<BR><BR>Sql="Delete TableName From TableName Where RecordId In(" & StrRemove & ")"<BR><BR>Conn.Execute Sql<BR><BR>That is for Sql Server DB, Access DB would be<BR><BR>Sql="Delete TableName.* From TableName Where RecordId In(" & StrRemove & ")"<BR><BR>Conn.Execute Sql<BR><BR><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