Object not found

Results 1 to 2 of 2

Thread: Object not found

  1. #1
    anurag Guest

    Default Object not found

    I have written an ASP code with one Command button and 0ne text box only.And in Button1_Onclick event I m trying to use ADO commands to update the data in database.<BR>But always I am getting the error that Object not found "Server"<BR>which I used to create an ADODB Connection Object. <BR>I am using VBScript.<BR>Click even code is like<BR><BR>sub button1_onClick<BR><BR>Dim c1<BR>Dim strquery1<BR>set c1 = Server.CreateObject("ADODB.Connection") <BR><BR>c1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Data Source = c:account.mdb" <BR><BR>c1.Open<BR><BR><BR>set strquery1= Server.CreateObject("ADODb.Recordset")<BR>strquery 1.Open "Select * from Item",c1<BR>strquery1.AddNew<BR>strquery1("Item_Na me")="Test" <BR>strquery1.Update<BR>strquery.close<BR>c1.close <BR>end sub<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Object not found

    1 - the account.mdb has to be on the web server C:drive, not the workstation C: drive.<BR>2 - You may need to install Active Server Pages on your web server.

Posting Permissions

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