Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    If you want to provide db with attempted code, follow instructions at bottom of my post.
    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.

  2. #17
    DaveWms is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2014
    Location
    Dallas, TX
    Posts
    11
    This is the final code I used to get it to work:

    Dim stDocName As String

    Dim lngSelRecord As Long

    lngSelRecord = [Forms]![Customers]![Invoices Subform]![InvoiceID]
    stDocName = "Invoices"
    DoCmd.OpenForm stDocName, , , "[InvoiceID] = " & lngSelRecord

    Thanks for bearing with me through this.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Open a form based on a subform value
    By Fipper_SG in forum Programming
    Replies: 5
    Last Post: 09-19-2013, 02:53 PM
  2. Open form based on subform - possible
    By Richie27 in forum Access
    Replies: 2
    Last Post: 06-19-2012, 12:52 PM
  3. Open form with subform No Update
    By insane53 in forum Forms
    Replies: 1
    Last Post: 01-06-2012, 02:46 PM
  4. Replies: 1
    Last Post: 12-04-2011, 09:11 PM
  5. Replies: 1
    Last Post: 11-30-2010, 10:05 AM

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