Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple form updating multiple rows of data

Status
Not open for further replies.

sladd

IS-IT--Management
Mar 7, 2001
44
US
Sorry guys, but this is going to be extrememly elementary. I need to create a form where multiple records can be edited at once. Basically, I need to list available models and allow the user to enter the number of each model they would like to order and write this to the database.

Is the correct way to do this to:
1)fill a dataset with the model and order data
2)count the number of rows in the dataset
3)create a table which adds a row for each record in the dataset and adds a text box to hold the number to be ordered to the side of each row
4)loop through the dataset updating the info from the text boxes into the dataset
5)update from the dataset to the database

It seems that would work. However, the number of each model being ordered will be adjusted on a go forward basis - Today the user predicts what he plans to order in April, but in December he may realize he needs to adjust his April order amount. Hence, I would like the user to be able to edit the data directly in the dataset rather than in a text box thats hanging to the side. Is this possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top