ASP form

Results 1 to 2 of 2

Thread: ASP form

  1. #1
    Join Date
    Dec 1969

    Default ASP form

    I guess this is very easy, but I&#039;m new to ASP<BR><BR>What&#039;s wrong?<BR>&#060;%<BR>dim Conn<BR>Set Conn = Server.CreateObject("ADODB.Connection")<BR>Conn.Op en "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../../data/news.mdb")<BR>set rs = conn.Execute("SELECT * FROM Produkter WHERE 1=2")<BR>rs.Open,Conn,1,2<BR>rs AddNew<BR>rs("Produktnamn")= Request.Form("rubr")<BR>rs("Datum")= Request.Form("date")<BR>rs("Produkt")= Request.Form("beskr")<BR>rs("Fotografi")= Request.Form("pic")<BR>rs.Update<BR>rs.Close<BR>co nn.close<BR>%&#062; <BR><BR>I know that I&#039;ve opened it twice, but what shall I do?

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: ASP form

    try this<BR><BR>Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../../data/news.mdb")<BR>VivaldiKills = "SELECT * FROM Produkter WHERE 1=2"<BR>rs.Open VivaldiKills,Conn,1,2<BR><BR><BR>so basically you dont want to select any data right??

Posting Permissions

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