I have created a Form Template to use in creationof several forms. I am trying to reference fields on one form with fields from another form. The first form holds 12 lines and the 13 line shows up on another instance of another form by using a Next Page Button. I have an accounting application that has data on Page 1 with 12 Lines and when I click the Next Page, my second form pops up with Line 13 and totals all 12 fields on the first form and adds the 13 field on the second form. I am trying to write out to a text file all 13 lines, but wghen I try to reference fields for the 13 line I get an error message: Object reference not set to an instance of an object. I know the computer does not know what the fields are, thats the reason for the error. Is there a way to reference a particular field by using the My.Application.OpenForms.Item(FormName)? Or maybe use a My.forms.Form1.textBox00 someway? The field names that I have are Fields created with an array and named TextBox00, 10, 20, 30, 40 and so on.
What is the correct coding to reference a field?
What is the correct coding to reference a field?