Skip to main content

Strange error emssage in query

Comments

5 comments

  • Lothar Hasenkämper

    Hi

    check the TextFormat from textbox5. It seems that you used a numeric value.

    regards Lothar

    0
  • Oezmen, Vural

    Hi Lothar,

    thank you for your response.

    I have checked the format of textBox5; it is set on general. This can not be the issue, since when I set statically an value to textBox5.Value it is working. It is even working when I set it by the query.
    The quury has an issue with the inne join. Maybe you can have closer look on the query especially on the inner join? 
    The issue appear when I let the inn join like this: INNER JOIN OWOR T1 ON " + PickDetails_PSGGER("OrderEntry") + " = T1.DocEntry 

    But when set it statically e.g. like this: INNER JOIN OWOR T1 ON 663633 = T1.DocEntry 
    then there is no issue.
    Also when I use “'” like follwing INNER JOIN OWOR T1 ON ‘663633’ = T1.DocEntry 
    also it works

    Thanks!
    Vural
     

    0
  • Lothar Hasenkämper

    Ah okay, that could make sense.

    The String can't be build perhabs. Try set PickDetails_PSGGER("OrderEntry").ToString() or use CSTR 

     

    regards

    0
  • Oezmen, Vural

    This is very straninge but you are absolutely right. I don't know why the String could not be build. By using .ToString() it worked!

    Thank you very much for your help Lothar!

    0
  • Lothar Hasenkämper

    You are welcome.

    The reason is that inside the LD.QueryData you need a complete string I think

    regards Lothar

    0

Please sign in to leave a comment.