View Single Post
  #5 (permalink)  
Old 12-04-2008, 7:41 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

I tried your approach with the following code, but I'm getting a "Query expression error on the AOP5.sn line. Any idea why it's not working?

Code:

Dim mySQL_Statement As String = "UPDATE ID" & vbNewLine & _
" SET ID.NARC = AOP5.sn " & vbNewLine & _
" from IDENTIFICATION_DATA, ID, AOP5 ao where SUBSTRING (ao.NSN, 6, 11) = id.NIIN"

What is the purpose of including ID and ao in the query string? Sorry I don't quiet follow the logic.

Thanks,

Victor
Reply With Quote