what is SQL?
and how do you use it?
SQL is STRUCTURE QUERY LANGUAGE...this is the language that will interact with ur database.
ur SQL code will look like this :
SELECT table.Item,table.quantity FROM table WHERE table.referenceNumber = <your reference number>
--> table is the table in ur database where attributes ITEM and Quantity resides.
--> the code will return all the Item ans quantity where the the Reference number = the attribute reference number in ur table.
you will embed ur sql code to ur VB 6 code...in the database connection part.
Hope im clear enough..:)