Module 1
Structure Members
<VBFixedString(15)> Dim Fname1, Lname1, EmpNum1, RecNum1, DoB, Age, Phone, City, State, Zip, Ssn, Hire, Service, Jt, Hr, Shift, Facility, HealthIns, DentalIns, LifeIns, Retirement As String
<VBFixedString(20)> Dim Address As String
End Structure
Public Record(30) As Members
Public f1 As New Form1()
Public f2 As New Form2()
Public f3 As New Form3()
Form 1 'Save all input data from all forms
Dim Record As Members
Record.Fname1 = txtFname1.Text
Record.Fname1 = f2.txtFname2.Text
Record.Fname1 = f3.txtFname3.Text
Record.Lname1 = txtLname1.Text
Record.Lname1 = f2.txtLname2.Text
Record.Lname1 = f3.txtLname3.Text
Record.DoB = txtDoB.Text
Record.Age = txtAge.Text
Record.Phone = txtPhone.Text
Record.Address = txtAddress.Text
Record.City = txtCity.Text
Record.State = txtState.Text
Record.Zip = txtZip.Text
Record.EmpNum1 = txtEmpNum1.Text
Record.EmpNum1 = f2.txtEmpNum2.Text
Record.EmpNum1 = f3.txtEmpNum3.Text
Record.Ssn = txtSsn.Text
Record.Hire = txtHire.Text
Record.Service = txtService.Text
Record.RecNum1 = txtRecNum1.Text
Record.Jt = f2.txtJt.Text
Record.Hr = f2.txtHr.Text
Record.Shift = f2.txtShift.Text
Record.Facility = f2.txtFacility.Text
Record.HealthIns = f3.cbHealthIns.Text
Record.DentalIns = f3.cbDentalIns.Text
Record.LifeIns = f3.cbLifeIns.Text
Record.Retirement = f3.cb401K.Text
Form 2 'Save all input data after editting (doesn't work)
Dim Record As Members
Record.Jt = txtJt.Text
Record.Shift = txtShift.Text
Record.Hr = txtHr.Text
Record.Facility = txtFacility.Text
f1.txtFname1.Text = Record.Fname1
Record.Lname1 = f1.txtLname1.Text
Record.EmpNum1 = f1.txtEmpNum1.Text
Record.RecNum1 = f1.txtRecNum1.Text
Record.DoB = f1.txtDoB.Text
Record.Age = f1.txtAge.Text
Record.Phone = f1.txtPhone.Text
Record.Address = f1.txtAddress.Text
Record.City = f1.txtCity.Text
Record.State = f1.txtState.Text
Record.Zip = f1.txtZip.Text
Record.Ssn = f1.txtSsn.Text
Record.Hire = f1.txtHire.Text
Record.Service = f1.txtService.Text
Record.HealthIns = f3.cbHealthIns.Text
Record.DentalIns = f3.cbDentalIns.Text
Record.LifeIns = f3.cbLifeIns.Text
Record.Retirement = f3.cb401K.Text
When saved from Form 2 it save form 2 and Form3 information but not form1, all form 1 data fields are empty. Thanks
Renegade