C
Crispy
I have two forms...one called frmStudentRecords and one called
frmParentInformation. The frmStudentRecords form has a command button that
launches the frmParentInformation form.
When you click to create a new record in frmStudentRecords it inserts an
autonumber into the StudentID field. This is great. However, when you then
click on the command button to launch the frmParentInformation form to fill
that out as well... the two forms are not connected (the StudentID field for
frmParentInformation is left blank). I need the new autogenerated StudentID
number from the frmStudentRecords form to insert itself into the
frmParentInformation form so the two forms connect and relationships will
work.
I tried sticking:
If IsNull(Me!StudentID) Then
Me!StudentID = Forms!frmStudentRecords!StudentID
End If
in the BeforeUpdate field of the frmParentInformation form. It didn't work..
just would stick a "0" in the student ID field.
Any ideas?
Thanks!
frmParentInformation. The frmStudentRecords form has a command button that
launches the frmParentInformation form.
When you click to create a new record in frmStudentRecords it inserts an
autonumber into the StudentID field. This is great. However, when you then
click on the command button to launch the frmParentInformation form to fill
that out as well... the two forms are not connected (the StudentID field for
frmParentInformation is left blank). I need the new autogenerated StudentID
number from the frmStudentRecords form to insert itself into the
frmParentInformation form so the two forms connect and relationships will
work.
I tried sticking:
If IsNull(Me!StudentID) Then
Me!StudentID = Forms!frmStudentRecords!StudentID
End If
in the BeforeUpdate field of the frmParentInformation form. It didn't work..
just would stick a "0" in the student ID field.
Any ideas?
Thanks!