Results 1 to 37 of 37

Thread: [RESOLVED] Update Syntax in Access not the same as in vb 6 code why?

Threaded View

  1. #21
    Frenzied Member
    Join Date
    Jun 2014
    Posts
    1,084

    Re: Update Syntax in Access not the same as in vb 6 code why?

    the following seems to work(at least on my system):
    Code:
    Private Sub Command1_Click()
       Dim Conn As New ADODB.Connection
       Conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\IkkeEnGij\Documents\TheDatabase.accdb"
       Conn.Open
       Conn.Execute "UPDATE Table1 SET Table1.TheName = Replace(Table1.TheName,chr(39),"""")"
       Conn.Close
    End Sub
    Last edited by IkkeEnGij; Apr 11th, 2016 at 04:15 PM. Reason: writeing error
    do not put off till tomorrow what you can put off forever

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