BillKilgore
Programmer
I'm writing an Access DB that will maintain an inventory of metal barstock and the products that they ultimately become.
Each bar is assigned a sequential number when it enters inventory independent of its make up. There are many different metals and alloys.
As each bar is machined into one of 18 different products, the bar used is removed from inventory and the parts are entered in.
There are 18 different part numbers.
I have to do the following:
-Find the last number assigned to a bar so the new number can be assigned.
-Periodically, loop thru the bar inventory to count the number of bars by metal type and sum the value of each type value at the same time.
-Do the same for each type of part
We'll be able to associate a bar with a batch of parts and see if the process is within limits.
I've had formal SQL training but never used it with Delphi. My basis for using Delphi was previous training in Turbo Pascal. I've gotten to where I can use "Locate," set field values, and use "insert".
I'm using ADOTables, DBComboBoxes, and DBEditBoxes.
My trouble is how and where to set up the SQL Code?
Given what I've learned in the last 2 weeks it's maybe,
With ADOTable do
begin
MYSTERY AREA
end
Can I do this from an ADOTable?
I know how complex SQL code can become so that in the past I've usually extracted with a SELECT * FROM WHERE sequence and massaged the gross data with software. You can also take more than one slice of the same data.
With Delphi, will I have to save the SQL data to a file or load an array before I can work with the data?
I've spent a pretty good length of time searching through the archives at this (and other) web sites with no luck. I've done pretty good getting through the basics of DB usage
with Delphi but as things become more complex the examples
thin out.
If you've stayed with me so far, thank you and I really appreciate any input you'd care to impart.
Thanks, Bill Kilgore
Each bar is assigned a sequential number when it enters inventory independent of its make up. There are many different metals and alloys.
As each bar is machined into one of 18 different products, the bar used is removed from inventory and the parts are entered in.
There are 18 different part numbers.
I have to do the following:
-Find the last number assigned to a bar so the new number can be assigned.
-Periodically, loop thru the bar inventory to count the number of bars by metal type and sum the value of each type value at the same time.
-Do the same for each type of part
We'll be able to associate a bar with a batch of parts and see if the process is within limits.
I've had formal SQL training but never used it with Delphi. My basis for using Delphi was previous training in Turbo Pascal. I've gotten to where I can use "Locate," set field values, and use "insert".
I'm using ADOTables, DBComboBoxes, and DBEditBoxes.
My trouble is how and where to set up the SQL Code?
Given what I've learned in the last 2 weeks it's maybe,
With ADOTable do
begin
MYSTERY AREA
end
Can I do this from an ADOTable?
I know how complex SQL code can become so that in the past I've usually extracted with a SELECT * FROM WHERE sequence and massaged the gross data with software. You can also take more than one slice of the same data.
With Delphi, will I have to save the SQL data to a file or load an array before I can work with the data?
I've spent a pretty good length of time searching through the archives at this (and other) web sites with no luck. I've done pretty good getting through the basics of DB usage
with Delphi but as things become more complex the examples
thin out.
If you've stayed with me so far, thank you and I really appreciate any input you'd care to impart.
Thanks, Bill Kilgore