Jump to content

Query with variables VB.net


Recommended Posts

I am working on a small vb project I have a small one table MS Access database connected to my vb project. Everything load properly and responds the way I want it to. Now I want to add querys based on variables. In the screen shot below I have a input box for the drawing id and a submit button when I click the submit button I want it to run this sql query:


select drawingID
from tblshapes
where drawingID = [varable from the input box]

shapesv.th.png

any ideas I tried to use the query builder, but I can not insert variables from my inputbox

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...