Question : Update Query to update by stated amount of rows and multiple times in one go

Hi EE
I have a Form that contains a sub form. The sub form lists all records that meet a criteria.
The table that this sub form relates has a field called EnquireyTakenBy, some of them have a value and some of them are NULL.

On the main part of the form with help on a previous post I have 10 combo box’s and for each combo box there is a unbound number field next to it.

I want a way to type in a number value in the number field and then run a query that will update the number of records that you have written in the number field with the value of the combo box.

I guess this would be done in a Update Query. But don’t know how to Make the query only update a certain amount of records that is stated on the form in the number field.

The second part to this question is:
What I have explained above has 10 combo box’s and fields so you can enter 10 values at the same time and next to each combo box you can enter a different number in the number field.
Can the answer to the above question also with one click of the button do all 10 at the same time?

EG

COMBO BOX             NUMBER FIELD
John                                    12
Ian                                       9
Simon                                  8


When you click a button it updates all at the same time that
John is placed in the ‘EnquireyTakenBy’ field on 12 records
Ian is placed in the ‘EnquireyTakenBy’ field on 9 records
Simon is placed in the ‘EnquireyTakenBy’ field on 8 records


Thanks

Answer : Update Query to update by stated amount of rows and multiple times in one go

You missed a ; after relative =]
Random Solutions  
 
programming4us programming4us