D
duBedat68
Hi,
I am doing an assignment which requires two forms of user input.
The first form asks for "Parent's" information & when validated, loads the
second form which asks for "Child's" information.
The Child form is supposed to display the Parent details in its labels, but
I can't seem to find a way to do it.
I have tried a heap of different ways, but nothing seems to work.
Here is the offending bit of code:
************************************
************************************
Private Sub frmChild_Initialize()
With frmChild.lblChildShowParentDetails
.Caption = _
frmParent.txtParentFirstName.Value & " " _
& frmParent.txtParentSurname.Text
.Visible = True
frmChild.lblChildShowAddressDetails.Caption = _
frmParent.txtParentStreetAddress.Value & " " _
& frmParent.txtParentSuburb.Value & " " _
& frmParent.txtParentPostCode.Value
If frmParent.optParentYes.Value = True _
Then
frmChild.lblChildShowCentreLinkConfirm = "YES"
Else
lblChildShowCentreLinkConfirm = "NO"
End Sub
****************************************
****************************************
As you can see, I am trying a number of different ways to achieve the
desired outcome, but can't seem to get it to work.
Any help is greatly appreciated
Thanks
duBe
I am doing an assignment which requires two forms of user input.
The first form asks for "Parent's" information & when validated, loads the
second form which asks for "Child's" information.
The Child form is supposed to display the Parent details in its labels, but
I can't seem to find a way to do it.
I have tried a heap of different ways, but nothing seems to work.
Here is the offending bit of code:
************************************
************************************
Private Sub frmChild_Initialize()
With frmChild.lblChildShowParentDetails
.Caption = _
frmParent.txtParentFirstName.Value & " " _
& frmParent.txtParentSurname.Text
.Visible = True
frmChild.lblChildShowAddressDetails.Caption = _
frmParent.txtParentStreetAddress.Value & " " _
& frmParent.txtParentSuburb.Value & " " _
& frmParent.txtParentPostCode.Value
If frmParent.optParentYes.Value = True _
Then
frmChild.lblChildShowCentreLinkConfirm = "YES"
Else
lblChildShowCentreLinkConfirm = "NO"
End Sub
****************************************
****************************************
As you can see, I am trying a number of different ways to achieve the
desired outcome, but can't seem to get it to work.
Any help is greatly appreciated
Thanks
duBe