Click here to Skip to main content
15,912,072 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil21-Oct-09 22:22
rabih.tawil21-Oct-09 22:22 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Christian Graus21-Oct-09 23:15
protectorChristian Graus21-Oct-09 23:15 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Andy_L_J21-Oct-09 22:06
Andy_L_J21-Oct-09 22:06 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Christian Graus21-Oct-09 23:41
protectorChristian Graus21-Oct-09 23:41 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Dave Kreskowiak22-Oct-09 1:40
mveDave Kreskowiak22-Oct-09 1:40 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Christian Graus21-Oct-09 23:19
protectorChristian Graus21-Oct-09 23:19 
AnswerRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil22-Oct-09 3:04
rabih.tawil22-Oct-09 3:04 
AnswerRe: cmd.executenonquery not accepting nz function Pin
Dave Kreskowiak22-Oct-09 9:41
mveDave Kreskowiak22-Oct-09 9:41 
If this is a copy'n'paste version of your exact code, line for line, then you've got a problem. VB.NET doesn't (until 2010 anyway) do automatic line continuation. So, if you're seeing VB.NET throw up these errors, you have to reformat your SQL string like this:
my query1 = "SELECT Inventory.Inventory_Id, Inventory.Inventory_description, " & _
    "Inventory.Inventory_stock_count, nz((SELECT Sum(Order.item_qty) AS SumOfitem_qty " & _
    "FROM [Order] " & _
    "WHERE Order.From_date<=Date() AND (Order.To_date)>=Date() AND Order.Item_ID=""I"" & " & _
    "Inventory.Inventory_Id),0) AS CurrentlyOut, " & _
    "[Inventory_stock_count]-Nz((SELECT Sum(Order.item_qty) AS SumOfitem_qtyFROM [Order] " & _
    "WHERE Order.From_date<=Date() AND (Order.To_date)>=Date() AND Order.Item_ID=""I"" & " & _
    "Inventory.Inventory_Id),0) AS NetHereFROM Inventory"

Learn how VB.NET handles string literals before you start bashing other people for their "lack of knowledge", Mr. Genius.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil22-Oct-09 9:54
rabih.tawil22-Oct-09 9:54 
QuestionLooping Website Viewer? Pin
teknozwizard21-Oct-09 19:55
teknozwizard21-Oct-09 19:55 
AnswerRe: Looping Website Viewer? Pin
Christian Graus21-Oct-09 22:04
protectorChristian Graus21-Oct-09 22:04 
QuestionRe: Looping Website Viewer? Pin
teknozwizard22-Oct-09 7:27
teknozwizard22-Oct-09 7:27 
AnswerRe: Looping Website Viewer? Pin
John M Bundy22-Oct-09 8:26
John M Bundy22-Oct-09 8:26 
GeneralRe: Looping Website Viewer? Pin
John M Bundy22-Oct-09 8:37
John M Bundy22-Oct-09 8:37 
GeneralRe: Looping Website Viewer? Pin
teknozwizard22-Oct-09 10:37
teknozwizard22-Oct-09 10:37 
GeneralRe: Looping Website Viewer? Pin
John M Bundy22-Oct-09 15:04
John M Bundy22-Oct-09 15:04 
GeneralRe: Looping Website Viewer? Pin
teknozwizard22-Oct-09 19:09
teknozwizard22-Oct-09 19:09 
QuestionHow can I have a progress Bar under a save method in a Child form? Pin
waner michaud21-Oct-09 10:11
waner michaud21-Oct-09 10:11 
AnswerRe: How can I have a progress Bar under a save method in a Child form? Pin
tosch21-Oct-09 20:08
tosch21-Oct-09 20:08 
GeneralRe: How can I have a progress Bar under a save method in a Child form? Pin
waner michaud22-Oct-09 4:43
waner michaud22-Oct-09 4:43 
QuestionClose form without current form Pin
ivo7521-Oct-09 7:36
ivo7521-Oct-09 7:36 
AnswerRe: Close form without current form Pin
dan!sh 21-Oct-09 8:03
professional dan!sh 21-Oct-09 8:03 
QuestionSearching for installed SQL Server Instances Pin
Ekjon21-Oct-09 5:44
Ekjon21-Oct-09 5:44 
AnswerRe: Searching for installed SQL Server Instances Pin
dan!sh 21-Oct-09 6:01
professional dan!sh 21-Oct-09 6:01 
AnswerRe: Searching for installed SQL Server Instances Pin
Dambod21-Oct-09 6:09
Dambod21-Oct-09 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.