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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Click on table record show same record in text box.

Status
Not open for further replies.

zorro19s

Programmer
Jul 20, 2001
13
CA
I have few text boxes and a subform with a table in it. They both are the same database. I want to click on a record in the subform table and making same record appear in the text boxes above.
 
A little more information about your forms and tables would be helpful.

If you only want to "display" information from the subform table in text boxes on the main form, you can add the necessary code to the OnCurrent event of the subform. For example:
Code:
Private Sub Form_Current()
  Parent!Text1 = Me!Text2
  ' etc.
End Sub
If you want to do more than that, say, do a record lookup for the main form, you'll need to be more specific about your forms, your tables, and the process you're trying to accomplish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top