View Single Post
  #3 (permalink)  
Old 12-04-2008, 5:37 PM
victor64 victor64 is offline
VB.NET Forum Enthusiast
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Nov 2008
Age: 46
Posts: 52
Reputation: 20
victor64 is on a distinguished programming path ahead
Default

Hello,

I'm trying to update the value in tableA, therefore I need to use the insert and update command, I tried to modify my code using your syntax but it still doesn't work. In this case table A is identification table and table B is AOP5. The error message states the substring is not recognized.

Dim mySQL_Statement As String = "UPDATE IDENTIFICATION_DATA " & vbNewLine & _
" INNER JOIN " & vbNewLine & _
" aop5 " & vbNewLine & _
" ON IDENTIFICATION_DATA.NIIN " & _
" = substring(aop5.NSN,5,11) " & vbNewLine & _
" SET IDENTIFICATION_DATA.NARC = " & _
" aop5.sn "
Reply With Quote