Results 1 to 9 of 9

Thread: Can't Update Database (Resovled)

Threaded View

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    Angry Can't Update Database (Resovled)

    Hi when i try to update my db i get this error



    this is the code that it has a problem with

    VB Code:
    1. Set myrs = New ADODB.Recordset
    2.         'set the varible to get ready
    3. Set MyConn = New ADODB.Connection
    4.         'set the varible to get ready
    5.     connstr = "Provider=MS Remote;" & _
    6.            "Remote Server=http://192.168.0.2;" & _
    7.            "Remote Provider=Microsoft.Jet.OLEDB.4.0;" & _
    8.            "Data Source=C:\Inetpub\wwwroot\BCIMusrs.mdb"
    9.            MyConn.ConnectionString = connstr
    10.     MyConn.Open
    11.  
    12. 'the line below is the problem the stuff above might help i think
    13.  
    14. Set myrs = MyConn.Execute("UPDATE users SET ScreenName = '"
    15. & userscrname & "' WHERE Username ='" & employeeperson & "'")

    Please Help

    Sam Lad
    Last edited by señorbadger; Dec 14th, 2003 at 11:44 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width