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 / Forms / February 2008

Tip: Looking for answers? Try searching our database.

link to a record on a form - subforms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bigbump - 08 Feb 2008 12:00 GMT
I have created a link from one form to a specific record on another using the
following macro;
Action: Open Form
Where Condition: [ID]=[Forms]![Newspaper Query]![ID]
This works perfect until I try to add the first for as a sub form to my home
page form. When I click the link it first asks me to 'Enter Parameter Value -
Forms!Newspaper Query!ID' If I type in the ID it will take me to the
specified record but this is rather messy.
Am I missing some code with this being changed into a subform?
Al Campagna - 08 Feb 2008 13:30 GMT
Bigbump,
  Not sure if I understand...
  I think you're saying that when your "calling" form was a standalone, the
Where argument worked, but now... when that same form is a subform, the code
fails.
  And... if your ID is now on the subform, you should address it as....
(use your own object names)
=Forms!frmMainName!frmSubformName.Form!ID
Signature

   hth
   Al Campagna
   Microsoft Access MVP
   http://home.comcast.net/~cccsolutions/index.html

   "Find a job that you love... and you'll never work a day in your life."

>I have created a link from one form to a specific record on another using
>the
[quoted text clipped - 8 lines]
> specified record but this is rather messy.
> Am I missing some code with this being changed into a subform?
bigbump - 12 Feb 2008 11:32 GMT
That is brilliant, it is working now, thanks for your help.

> Bigbump,
>    Not sure if I understand...
[quoted text clipped - 16 lines]
> > specified record but this is rather messy.
> > Am I missing some code with this being changed into a subform?
 
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.