Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / October 2004

Tip: Looking for answers? Try searching our database.

Go to specific record in a subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wayne Robinson - 28 Oct 2004 14:32 GMT
I have a subform that lists many records (obviously). I want to be able to
go to a main form with the record that the user is current focused on (the
record selector is pointing to). I don't know the control name to do this,
is there a way with a macro?

Kindest regards,

Wayne

This email and any attachment have been scanned by Norton and are believed
to be virus free.
Steve Schapel - 28 Oct 2004 19:17 GMT
Wayne

Presumably you will have a Primary Key field included on the subform.
Let's suppose it is called [ID].  Use an OpenForm action in your macro,
and in the Where Condition argument, put the equivalent of....
 [ID]=[Forms]![NameOfForm]![NameOfSubform]![ID]

Signature

Steve Schapel, Microsoft Access MVP

> I have a subform that lists many records (obviously). I want to be able to
> go to a main form with the record that the user is current focused on (the
[quoted text clipped - 4 lines]
>
> Wayne
Wayne Robinson - 29 Oct 2004 04:21 GMT
Steve, You are the  Best!

I have tried everything having to do with a record and never thought of the
ID field. Thanks so much.

Wayne

P.S. I'm a tax guy (who likes fiddling) building a research database. It has
turned out pretty well, but still needs some tweaking. I have gone back in
my forms and built defaults based on whether the item is taxable or exempt
etc. (I'm also a user so the less mouse clicks the better!).

Thanks again, I hope one day I can give someone advice.
Steve Schapel - 29 Oct 2004 05:47 GMT
Best wishes, Wayne.  Doesn't matter where you've got to, there's always
more to learn, but it sounds like you are enjoying the process, which is
wonderful.

Signature

Steve Schapel, Microsoft Access MVP

> Steve, You are the  Best!
>
[quoted text clipped - 9 lines]
>
> Thanks again, I hope one day I can give someone advice.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.