Results 1 to 2 of 2
  1. #1
    larrydwilliams is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    6

    Macro to navigate to tab or subform

    I am trying to get an "on click" macro to move from one sub-form to another. This doesn't seem like it should be very difficult, but error messages indicate that the form isn't open or that access can't locate the specific subform. I have tried all kinds of forms!masterform.form!subform down to just the subform name itself (which opens the subform in a new window -- not what I'm after).



    Can anyone give me the macro commands that will get me to the desired location?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I always name subform container control different from the object it holds, like ctrDetails.

    Then use code to set focus on the subform container control.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-04-2012, 05:16 PM
  2. Write Code to Navigate from Subform to Subform
    By Swilliams987 in forum Programming
    Replies: 22
    Last Post: 02-04-2011, 11:30 AM
  3. View Macro Result in subform
    By rato999 in forum Programming
    Replies: 1
    Last Post: 01-23-2011, 09:34 PM
  4. Replies: 6
    Last Post: 11-05-2010, 10:11 AM
  5. VBA to Navigate form
    By asmith in forum Access
    Replies: 3
    Last Post: 09-30-2010, 11:37 AM

Tags for this Thread

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