Solved

Visual Studio 2005, Barcode scanning query with Access Database.

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

17 Experts available now in Live!

Get 1:1 Help Now