Results 1 to 3 of 3
  1. #1
    hesca is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    14

    Question How to create a button to open a form on a specific record?

    Hello experts.



    I have two forms: Form1: tabular form showing the latest order date for every customer. Form2: A form showing the history of this customer's interactions with my CSreps.

    I want to create a button on form 1 that opens form 2 AND shows the same customerīs details. This button should show on every row so it opens form2 on the record that shows the customer name from this row.

    How do I do this?

    I have tried to create a button on design view that opens form2 and then tried linking the button to form1 via "Customer name". It doesnt work. All it does is open form2 on the same record every time, no matter which button from which row do I press on the tabular form (form1)


    Help!!

  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
    See if this helps:

    BaldyWeb wherecondition
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Without knowing your table structure and relationships (also PK fields and SQL of the form record sources", it is difficult to be specific. Look in HELP for the "OpenForm Method".


    Something like:
    DoCmd.OpenForm "Employees", , ,"MY_PK = " & Me.PK_Field

    The syntax is:
    DoCmd.OpenForm formname ,,, wherecondition

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

Similar Threads

  1. Open form on specific record
    By iky123 in forum Forms
    Replies: 1
    Last Post: 04-11-2012, 09:56 AM
  2. Open form to specific record
    By Two Gun in forum Forms
    Replies: 7
    Last Post: 11-09-2011, 10:00 AM
  3. Open Form to Specific Record
    By batowl in forum Forms
    Replies: 1
    Last Post: 04-08-2011, 10:10 AM
  4. Replies: 5
    Last Post: 03-03-2011, 03:56 PM
  5. Replies: 3
    Last Post: 01-14-2010, 08:32 AM

Tags for this Thread

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