Results 1 to 4 of 4
  1. #1
    tomnsd is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    17

    Linking forms without using subforms

    I want to link a form to another form without making the form a subform. I have three forms; a "projects" form, a "projectsub" form, and a "taskmanager" form. I am trying to create a button on the "projectsub" form that will open the "taskmanager" form to a specific record. The common control in both forms is "projectid". This is the form control name and not the underlying table field name. I also want the ability for the form to populate with the "taskmanager" form to populate with the projectid from the "projectsub" form to create a new record in the "taskmanager".

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tomnsd is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    17

    Doesn't work

    Below is the code I added. The record that I want to select is on the subform of the mainform. When I run it a box pops up that says enter parameter value ITProjectID.

    Code:
    Private Sub Command42_Click()
    DoCmd.OpenForm "project", , , "ITProjectID = " & Forms![Main]![Projects].Form![ITProjectID]
    End Sub

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The prompt is Access telling you it can't find something. Make sure that field is in the project form's record source, and that the form reference is correct.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 01-16-2013, 03:48 PM
  2. Help with append queries and linking subforms
    By MelonFuel in forum Queries
    Replies: 1
    Last Post: 07-11-2012, 01:47 PM
  3. Linking Subforms on Unbound Master Form?
    By 10 Gauge in forum Forms
    Replies: 8
    Last Post: 07-21-2011, 08:06 AM
  4. Replies: 4
    Last Post: 06-22-2011, 10:53 AM
  5. Problem linking subforms, filtering and uploading
    By sameerk0286 in forum Access
    Replies: 1
    Last Post: 12-09-2010, 09:18 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