Subform Tie in

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Sorry about the subject line, couldn't come up with anything intelligent.

I have subforms attached obviously to my main form. Is there/what is the code etc that if you opened the form by itself that I would put in a text box that would show whose record I was looking at.

Something is telling me I can't do this, but anywhooo Thanks
 
Sorry about the subject line, couldn't come up with anything intelligent.

I have subforms attached obviously to my main form. Is there/what is the code etc that if you opened the form by itself that I would put in a text box that would show whose record I was looking at.

Something is telling me I can't do this, but anywhooo Thanks

You can indeed, and it's pretty easy. You can use the Command Button
wizard to create an "Open Form" button; edit the code to change the
line

DoCmd.OpenForm strDoc

to

DoCmd.OpenForm strDoc, WhereCondition := "[your-key-field] = " &
Me![txtID]

(all on one line, using your own fieldnames of course).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Main form/Subform Navigation 0
Subforms 6
Access Reference Subform's Control 0
Access Manage Attachments linked to a SubForm 0
Making new records from a subform 1
Form & Subforms 1
Multiple subforms 0
Totalling nested subforms 7

Back
Top