First off, apologies if this question has already been asked/answered, but I wasn't able to find a thread that had my specific problem.
I have a table that will dynamically grow when the User presses an "+" button. In my table I have a drop down box that auto populates a text box based on a Users specific selection. This is the code that I used:
Your understanding is close but let me clarify further for you.
I want each row's WarehouseCode to auto populate based on the Users ItemDescription dropdown selection. So I don't want it to repeat what was selected in Row 1; it will be empty until someone selects an ItemDescription and then based on that selection it will call up the associated WarehouseCode. Right now, the code I am using does that for the first row, but it will not do that for any subsequent rows added.
Is that more clear?
Thanks again for your help! I really appreciate it. Learning lots here.
If i am understanding right. You want each row's WarehouseCode to be the same as the one selected in the dropdown on the first row?
If this is the case.
In the intialise event for the WarehouseCode add:
//the code will still execute when the form loads, but nothing is there so it doesnt matter
//each new row will get the value in the ItemDescription dropdown and add it to the WarehouseCode TextField on each new row when the add button is clicked.
//FYI, the  in the code represents the first instance (first repeating row of the table). Each time you add a row, the raw value from the first row is used. Each row gets a new instance reference so you can target other rows if needed. Table row 2 is instance , row 3 is  and so on.