Solved

Visual Studio 2005, Barcode scanning query with Access Database.

Posted on 2007-03-22
1
241 Views
Last Modified: 2013-11-26
Here is what Im trying to do.

Page 1 is a simple form where I scan in a barcode.  If the barcode is in the database it should return the values (below) on the second page.

Im using an access database and MS Visual Studio  2005 (.Net 2.0)
My table is called Stock, the fields are, Barcode, StockID, Equipment, SerialNo, Manufacturer & Supplier.

Im hopeless at writing SQL queries and the wizard doesnt help much. Can any one assist me for what code I should be writing on the second page.  The page names are irrelevant at the moment so feel free to use any examples.
0
Comment
Question by:toddml
1 Comment
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 18776587
isn't it simply:

select Barcode, StockID, Equipment, SerialNo, Manufacturer, Supplier
from stock
where Barcode = YourValue

A barcode is always a string or a number so it doesn't matter.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now