Results 1 to 3 of 3
  1. #1
    eraengineer is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2013
    Posts
    3

    click record to open a form with additional information on that record


    I would like to click on a record on a multiple items form and have it open a form with additional information about that record. I image there will be some linking to of queries and tables but I can not seem to figure this one out.... I want to click an image on my form and have it open a new form displaying the same image.

  2. #2
    eraengineer is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2013
    Posts
    3
    I tried the string below, but I get a compile error in hidden module: myform
    DoCmd.OpenForm "myForm",,,"ID=" & Me.ID

  3. #3
    rankhornjp is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2011
    Posts
    46
    Quote Originally Posted by eraengineer View Post
    I tried the string below, but I get a compile error in hidden module: myform
    DoCmd.OpenForm "myForm",,,"ID=" & Me.ID

    Maybe this will help.
    I have an unbound list box on frmMain that has a list of my clients (from the People table) On the Double Click event I run:
    DoCmd.OpenForm "frmPeople", acNormal, , "id=" & Me.lstClients.Value

    This opens another form (frmPeople) that will show that persons information (address, phone, email, etc.)


    The Row Source for the list box is:
    SELECT People.ID, People.pLname AS [Last Name], People.pMi AS MI, People.pFname AS [First Name], People.pDOB AS DOB, People.pSSN AS SSN, People.pInactive FROM People WHERE (((People.pInactive)=0)) ORDER BY People.pLname;

    Then I set my first column width to 0" so that the People.ID field isn't shown.

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

Similar Threads

  1. click on report to open more information
    By benjammin in forum Reports
    Replies: 3
    Last Post: 10-08-2012, 11:36 AM
  2. Replies: 3
    Last Post: 08-26-2012, 10:04 PM
  3. Replies: 10
    Last Post: 02-20-2012, 11:25 AM
  4. Replies: 4
    Last Post: 07-22-2011, 12:52 PM
  5. If record does not exist, open add new record form
    By RobertIngles in forum Programming
    Replies: 2
    Last Post: 02-01-2011, 08:47 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