Skip to main content

Vb.net Compile error

Comments

2 comments

  • David Bordones

    Hi Marc, 

    Have you tried your string like this?

    string query ="SELECT T1.\"ItemCode\" FROM ITM1 T0 INNER JOIN OITM T1 ON T0.\"ItemCode\" = T1.\"ItemCode\" WHERE T0.\"PriceList\" = 1 AND T1.\"ItemCode\" LIKE '@STORE1' AND T1.\"U_IMatrix\"='N'"

  • MARC

    Hi David

    I have tried \"  but the resulta it 's the same

    I'm searched on web and I have find this

    Dim Query as string

    Query="SELECT T1.""ItemCode"" FROM ITM1 T0 INNER JOIN OITM T1 ON T0.""ItemCode"" = T1.""ItemCode"" "

    I replace the character \ with the character " and this amounts to putting two "" in front of the name of each field when we want to encapsulate it in a string
     

    Thank's for your help

Please sign in to leave a comment.