Results 1 to 6 of 6
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Populate new record with search results

    I've just started on adding records to a subform however I want to make it easy for the user where if first allows them to search for a record in a search form and then add that record id to a new record in the subform they are currently on.

    I'm thinking it should carry over the searched ID and then return it to the form.

  2. #2
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Nevermind - found solution

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Care to share your solution with others that read these forums?

  4. #4
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by RuralGuy View Post
    Care to share your solution with others that read these forums?
    I made the button popup open with an openform to "add" and gave it the same query. I put in a search sub for the list and for every click action on the result I used vba to make the blank id field = the clicked id field.

    Me.Parent.frmBookingJoiningSearchSub2.Form.NewScho olsID = Me.NewSchoolsID

    for those who want to know

    me.mainform.subformwithsearchresults.Form.ID = me.MainformID (which happens to be blank because it's an add opened form).

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Thanks. I marked this thread as Solved for you.

  6. #6
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    ah thanks

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

Similar Threads

  1. Replies: 1
    Last Post: 08-24-2012, 08:24 AM
  2. Replies: 7
    Last Post: 08-08-2012, 03:28 PM
  3. Replies: 1
    Last Post: 10-24-2011, 04:11 PM
  4. Populate Table with query results
    By sparkyboy2406 in forum Queries
    Replies: 1
    Last Post: 02-23-2010, 03:51 PM
  5. Replies: 0
    Last Post: 10-16-2008, 02:39 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