Results 1 to 2 of 2
  1. #1
    Patch Spenceland is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    2

    Moving from a Subform within a Multi-Page Tab to a Selected Record and Tab

    Hi All

    This is my first post so I hope I can explain things properly.

    I have a Form named Clients with a multi-page tab named TabCtl0.

    The record source tables’ primary key is [ID]

    TabCtl0 has 7 tabs, the 1st named General.

    The 1st 6 tabs show information from the same record.

    The 7th tab contains a subform named Focus displaying continuous forms with 3 fields in each record including [ID]

    What I am trying (for hours and hours without success) to do is to create a Macro that fires when I double click on a control within subform Focus that takes me to the page named General and selects the record where ID = the ID within the selected record of subform focus.



    If that is possible and anybody can help I would be extremely grateful.

    I am using Access 2013

    Many thanks,

  2. #2
    Patch Spenceland is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    2
    Well its surprising what a bit of perseverance can do.

    After a good nights sleep and a good breakfast I gave it another go.

    The solution was as simple as this!

    Code:
    Private Sub Field_Name_Click()
    DoCmd.OpenForm "Client Details", , , "ID = " & Me.ID
    DoCmd.GoToControl "Client"
    End Sub
    Happy days! :-)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 03-03-2015, 07:20 AM
  2. Replies: 1
    Last Post: 03-05-2013, 06:38 PM
  3. Replies: 3
    Last Post: 02-11-2013, 04:43 PM
  4. Replies: 6
    Last Post: 05-05-2012, 08:43 AM
  5. Replies: 2
    Last Post: 07-24-2011, 08:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums