Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: RE: SQL Query on NAV 2013

$
0
0
Hello, You should make string concatenation. txtSQL :='SELECT Quantity=SUM(Quantity), [Item No_], [Location Code]'+ ' FROM dbo.[$company$Item Ledger Entry]'+ ' WHERE CONVERT(nvarchar(10), [Posting Date], 101) BETWEEN' + "FromDate" +' AND' "ToDate"+ ' AND [Location Code] <>''''' + ' AND Quantity <>0 '+ ' GROUP BY [Item No_], [Location Code]' Something like this. Best regards,

Viewing all articles
Browse latest Browse all 11285

Trending Articles