Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Referencing search results

    Where I'm at:



    *I have a query that returns values into a user form.

    *On that form I have added a button next to each record to open a new form... so far so good.

    *I don't know how to reference the result next to the button.

    What I want:

    * The user clicks the button and the new form is displaying details about the record it (the button) is next to.

    I plan on using this feature a lot, and I'm sure its pretty simple if you know what you are doing. Sadly I do not. I plan on a user using my search form. They can then open the record from the button and from there add notes possibly.

    I try and only include information that is helpful to getting the answer in my posts. If you need any other information to help on the issue just ask.

    Thanks, Andy

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by Homegrownandy View Post
    *I have a query that returns values into a user form.
    Is this form a Continuous form?

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Something like:

    DoCmd.OpenForm "formname", , , "Id=" & Me.ID
    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.

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    yes its a tabular form that displays all the results in a list.

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    June I'm sorry to say I have no clue what you mean there. Is there a term I can search that would help me understand?

    Thank you.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That is VBA code for opening a form with filtered dataset. Research the OpenForm method.
    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. Editable Search Results.
    By kacey8 in forum Forms
    Replies: 2
    Last Post: 06-12-2014, 07:31 AM
  2. Replies: 2
    Last Post: 05-07-2014, 10:24 AM
  3. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  4. SQL search results in a datasheet
    By BasilM in forum Programming
    Replies: 7
    Last Post: 09-15-2012, 11:25 PM
  5. Search - If no results
    By adams.bria in forum Programming
    Replies: 5
    Last Post: 04-03-2012, 09:59 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