I have a button that adds a subform as well as a row to a table (the table is in a different subform. I want the information that the user enters into the subform to populate into the table rows. I'm on my 3rd day of trying to figure it out and my third solution. I now have the script below, which only adds the information in the subform to the 3rd row (which is actually the 2nd row if you don't count the header row). All of the other rows in the form stay blank. Not.what.I.want!
What am I doing wrong? I've never written in code or scripted or anything of that nature. Please help me...
Is it possible for you to add a link to your form, I don't understand where the code you have posted is, I assume it is not in the button that adds the new subform instance, because this.parent would then refer to the parent of the button. If it is in the calculate event of the field of the subform instance just added it might work depending on the structure of your form.