I have a form that a user will scroll in and look for a certian record. when the user finds the record that they are looking for I have them double click on the that record and a 2nd screen comes up. I need to be a able to take the data in the primary key field on the data sheet and plug in into the new screen that just opened. I have tried to use the following code:
Dim varLoanNo As Variant
Dim varScreen As Variant
txtFormValue.SetFocus
If txtFormValue.Text = "D" Then
txtLoanNo.SetFocus
txtLoanNo.Text = Forms!FrmSentToSearchDetail!LoanNo.Text
End If
txtLoanNo.SetFocus
MsgBox txtLoanNo.Text
What am I doing wrong.
FYI.... I am using access 2000
Dim varLoanNo As Variant
Dim varScreen As Variant
txtFormValue.SetFocus
If txtFormValue.Text = "D" Then
txtLoanNo.SetFocus
txtLoanNo.Text = Forms!FrmSentToSearchDetail!LoanNo.Text
End If
txtLoanNo.SetFocus
MsgBox txtLoanNo.Text
What am I doing wrong.
FYI.... I am using access 2000