I need to change the values of a Combo Box in multiple records, in multiple subforms, based on a selection in a Combo Box on the main form.
I have been trying with a combination of "Do Until IsEmpty and Loop" and "IF, Then, Else", but not successful.
I can make "Do Until IsEmpty and Loop" working in a single subform, but when the subform is empty I get this error message. Run-time error '2448': You can't assign a value to this object.
The code I am using for the Loop is:
Do Until IsEmpty([frm_0_ImageID_Change_Order_Details])
Forms![frm_0_ImageID_Change]![frm_0_ImageID_Change_Order_Details].Form![Colour] = ColourSelect
frm_0_ImageID_Change_Order_Details.Requery
Loop
The reason for changing the values in the Combo Boxes in the subform is to clean up 6 years of old mistakes in the database.
I would really appreciate if some of you could guide me on the right track.
Thank You
I have been trying with a combination of "Do Until IsEmpty and Loop" and "IF, Then, Else", but not successful.
I can make "Do Until IsEmpty and Loop" working in a single subform, but when the subform is empty I get this error message. Run-time error '2448': You can't assign a value to this object.
The code I am using for the Loop is:
Do Until IsEmpty([frm_0_ImageID_Change_Order_Details])
Forms![frm_0_ImageID_Change]![frm_0_ImageID_Change_Order_Details].Form![Colour] = ColourSelect
frm_0_ImageID_Change_Order_Details.Requery
Loop
The reason for changing the values in the Combo Boxes in the subform is to clean up 6 years of old mistakes in the database.
I would really appreciate if some of you could guide me on the right track.
Thank You
