473,473 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

EPOS System, how do I do this????

2 New Member
Hey guys

I have chosen to create an Epos system for my final yr project which doesnt seem to be one of the wisest decisions ive made.

I am using Access to store all my data in the database and I am using vb.net 2005 as the GUI for the user.

So far so good, i have created the connection between access and vb.net, a dataset and a data adapter.

My aim is to enter the item Id number in a textbox, hit a button and all the details about the Id number will be retrieved from the database and appear in a data grid, such as description of item, price,.............

I know this is possible but Im not sure exactly how to do this

Thank you for your time

George. E
Nov 12 '07 #1
3 1667
daveftl
43 New Member
Hey guys

I have chosen to create an Epos system for my final yr project which doesnt seem to be one of the wisest decisions ive made.

I am using Access to store all my data in the database and I am using vb.net 2005 as the GUI for the user.

So far so good, i have created the connection between access and vb.net, a dataset and a data adapter.

My aim is to enter the item Id number in a textbox, hit a button and all the details about the Id number will be retrieved from the database and appear in a data grid, such as description of item, price,.............

I know this is possible but Im not sure exactly how to do this

Thank you for your time

George. E

use SQL command to do this,
try this:

"SELECT item_desc, item_price FROM Item WHERE item_ID =" &val(textbox.text)

SELECT syntax: SELECT <table.column> FROM <table>

hope this one helped you
Nov 12 '07 #2
GeorgeE
2 New Member
Hey Dave,

thanks for your response.

Because Ive just started learning SQL im not sure how to implement it into vb.net.

Do i put it in the form.vb view where the rest of the coding goes for the form?

or do i put it in the adapter where the query builder is?

Thanks again.
Nov 12 '07 #3
daveftl
43 New Member
Hey Dave,

thanks for your response.

Because Ive just started learning SQL im not sure how to implement it into vb.net.

Do i put it in the form.vb view where the rest of the coding goes for the form?

or do i put it in the adapter where the query builder is?

Thanks again.
You can do both.. but I usually place it in my VB form code. I haven't used VB.NET but I think there is a lot of similarity to VB6 :)

try this code:
Expand|Select|Wrap|Line Numbers
  1. Public cn As New ADODB.Connection
  2. Dim rsItem As New ADODB.Recordset
  3.  
  4. cn.ConnectionString = "DSN=ftL_ODBC" 'this is my connection to my Database
  5. cn.Open
  6.  
  7. With rsItemt
  8.  
  9.     .ActiveConnection = cn  ' this is ur connection to the database
  10.     .CursorLocation = adUseClient
  11.     .CursorType = adOpenKeyset
  12.     .LockType = adLockOptimistic
  13.     .Open "SELECT Item_number FROM Item WHERE Item_status = Available'"
  14.     ' this SQL returns Item number whose status = "Available"
  15.  
  16.  End With
  17.  
  18. Set dgrid.DataSource = rsItem ' set datagrid datasource
This is in VB 6 and MySQL 5... but I think there will be less alteration for it to work in VB.NET

God bless
Nov 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Dave | last post by:
we have, over the years developed an epos system for our business running in A97. the system records payments amongst other things what we wanted to do next was accept card payments through...
2
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its...
2
by: Sean Carey | last post by:
I converted a C# Upload app to VB.NET and am down to one error and was hoping someone could help me with te error. I would greatly appreciate help from anyone. Here is the error: ...
2
by: Graeme Neath | last post by:
I'm having a very bizarre problem. I have a vb.net application which uses the ESRI MapObjects 2.2 component (unmanaged code). When I use the MapObjects built-in function 'CopyMap' to copy the map...
5
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was...
1
by: tassieboy | last post by:
Hi All I have a VB.NET application which runs on all client machines except one, where on startup, it gives the message system.enterpriseservices.thunk.dll, or one of its dependencies, were not...
9
by: Arpan | last post by:
If I am not wrong, System.IO is one of the seven namespaces that get imported in all ASP.NET page automatically but in the following code: <%@ Import Namespace="System.IO" %> <script...
2
by: job | last post by:
In a sharepoint setup using smartpart to load our user controls using enterprise blocks (data) we are getting some strange errors (logged to the event log). We dont get the error all the time. When...
0
by: Siberwulf | last post by:
I'm trying to fetch an XML document from a website through an assembly i built and attached to SQL 2005. Here is my code for the SPROC assembly: public static void fetch_FeedData(string...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.