Getting the selected record in a subform

  • Thread starter Thread starter alapert
  • Start date Start date
A

alapert

Hello,

I have a tabpage in an access form.
In the first tab for example, there is a form that contains a list an
in the second tab, I would like to know what is the current selecte
record in the first tab.
How do you do that ?

Thks,

Antoin
 
What's ur RecordSource set to on the first Tab? Is the first tab the main
form and the second tab a subform?
-D
 
The main form contains the tabpage and each tab contains a subform. S
what is need is to get the selected row in a subform from anothe
subform
 
alapert said:
I have a tabpage in an access form.
In the first tab for example, there is a form that contains a list and
in the second tab, I would like to know what is the current selected
record in the first tab.


The tab control has nothing to do with this. Do this the
same way you would if the subform and stuff on the second
page were spread out on the main form without the tab
control. Here's an example to get the subform's current
record's key field:

Me.subformcontrol.Form.thekeyfield
 
Back
Top