S
Sarah at DaVita
I have a form that has a button to open another form. This form opens to a
specific record depending on what MSA_LeNum they choose in the first form.
It is possible that the LeNum does not exist in the table used by the
subform. I want access to enter the LeNum from the first form into the
control on the subform - in essense add the record. In the on open event in
the sub form I added the following code which does not work. The LeNum is a
key in the subform. Can someone tell me what I have wrong here. I am very
new to this stuff. Thanks.
Private Sub Form_Open(Cancel As Integer)
If Me.LE_Num <> [MSA_Inquiry_frm.MSA_LeNum] Then
Me.LE_Num = [MSA_Inquiry_frm.MSA.LeNum]
Else
Me.LE_Num
End If
specific record depending on what MSA_LeNum they choose in the first form.
It is possible that the LeNum does not exist in the table used by the
subform. I want access to enter the LeNum from the first form into the
control on the subform - in essense add the record. In the on open event in
the sub form I added the following code which does not work. The LeNum is a
key in the subform. Can someone tell me what I have wrong here. I am very
new to this stuff. Thanks.
Private Sub Form_Open(Cancel As Integer)
If Me.LE_Num <> [MSA_Inquiry_frm.MSA_LeNum] Then
Me.LE_Num = [MSA_Inquiry_frm.MSA.LeNum]
Else
Me.LE_Num
End If