This is what i need to do: <BR><BR>**If the add button is clicked. Select all the text fields that are named quantity. Enter the fields value and id into the database.**<BR><BR>Not quite sure how to do this. The input fields are being generated using a Do Until EOF recordset so all the field names are the same and the difference is in the id attribute which holds the item number.