Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vb.Net And MS Access Db

Status
Not open for further replies.

chaimUsa

Programmer
Jan 22, 2003
71
US
Hi all I am new to the Database World Here is my problem
I have A database with a table named ITEM which has 4 columns
1.Upc 2.Desc 3.Cost 4.Price

I have a datagrid and 4 textboxes and a button each textbox
represents 1 field on the button click event it should do the flowing 1 if the 4 textboxes is empty it should run the basic query and display all the data in the datagrid
if there is any textboxes not empty it should run a the select command like this WHERE UPC=(TextBoxUpc.TEXT)
how do gendered this kind of command?
Is it possible to have where upc=the containing characters or starts with these characters?

Please Help
Thank You
Chaim

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top