Jump to content
Xtreme .Net Talk

SQL statement in vb.net


Recommended Posts

Guest herewegoagain
Posted

Does anyone see anything here that I am missing? For some reason it is not returning the results it is suppose to.

 

sql2 = "SELECT * FROM STOCK WHERE ONHAND + ONORDER < RESERVE ORDER BY NUMBER"

 

stock is table name

onhand is field

onorder is field

reserve is field

number is field and primary key.

Please help thank you.....

Guest herewegoagain
Posted

nope

 

didnt work.....any other ideas?

I cant beleive this it should be so simple.

One piece of information that I didnt give before is that the fields are of float variety except for number.

Guest herewegoagain
Posted

sorry. it is not returning any results at all though I know that should not be the case. I know this is incorrect because I manually went in and looked through an excel formula to do the calculation to test the program results.

Here is the code of that event procedure and again thank you for your help....

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...