Getting the selected record in a subform

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
 
D

Dina

What's ur RecordSource set to on the first Tab? Is the first tab the main
form and the second tab a subform?
-D
 
A

alapert

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
 
M

Marshall Barton

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
 

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

Top