Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Visual Studio 2005, Barcode scanning query with Access Database.

Posted on 2007-03-22
1
245 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 70

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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