Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling data form a field on a datasheet

Status
Not open for further replies.

tpowers

Technical User
Nov 2, 2002
153
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top