Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2014
    Posts
    9

    Event From SubForm1 Open A Form to Specific Record in SubForm2


    This is the Code I have so far...

    Code:
    DoCmd.OpenForm "frmJobInfo", acNormal, "", "[JobID]=" & JobID, , acNormal
    This code is in the Click event on the form frmJobsList which is inside a subform called SubJobsList. There is another subform called SubJobInfo. I need the form in the above code to be directed to open inside the subform SubJobInfo.

    How can I change the code to make this happen?

    I tried the following but is doesnt open to the record I click in the form frmJobsList. I think I need to somehow combine the 2 methods into a single command.

    Code:
    Forms!frmMain!SubJobInfo.SourceObject = "frmJobsInfo"

  2. #2
    Join Date
    Feb 2014
    Posts
    9
    I tried to combine them but I got a syntax error...
    Code:
    Forms!frmMain!SubJobInfo.SourceObject = "frmJobInfo", acNormal, "", "[JobID]=" & JobID, , acNormal

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

Similar Threads

  1. Replies: 6
    Last Post: 11-13-2012, 04:29 PM
  2. Open form on specific record
    By iky123 in forum Forms
    Replies: 1
    Last Post: 04-11-2012, 09:56 AM
  3. Open form to specific record
    By Two Gun in forum Forms
    Replies: 7
    Last Post: 11-09-2011, 10:00 AM
  4. Open form to a specific record from a query
    By chris.williams in forum Forms
    Replies: 11
    Last Post: 10-06-2011, 04:15 PM
  5. Open Form to Specific Record
    By batowl in forum Forms
    Replies: 1
    Last Post: 04-08-2011, 10:10 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