Results 1 to 2 of 2
  1. #1
    mcronin is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Apr 2016
    Posts
    1

    I need to compare data from multiple lines of data against each other on a form

    Hi,

    I want multiple records to show up on one form page by using a key, can this be done? I have a lot of lines of data and a lot of them have the same company attached to them so I created a company id hoping that would allow me to bring up all the data from each of those lines next to each other in a nice form. I have attached a picture of the format that I want the data to pull into which it does obviously but I want to make it so that all of the lines of data that I have chosen that have the same company ID show up next to each other on the form. Can someone help with this?



    Thanks in advance!
    Attached Thumbnails Attached Thumbnails Capture1.PNG  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    the form is connected to a query that uses the key you picked out of a combo box (or textbox) on the form header.

    Qry=select * from table where [id] = forms!myform!cboBox

    in the combo box afterupdate event, refresh the list
    Code:
    sub cboBox_afterupdate()
      me.requery
    end sub

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

Similar Threads

  1. Replies: 5
    Last Post: 08-12-2013, 12:53 AM
  2. Replies: 5
    Last Post: 02-16-2013, 07:57 AM
  3. Replies: 7
    Last Post: 04-22-2012, 02:28 PM
  4. Replies: 1
    Last Post: 09-07-2011, 01:56 PM
  5. Compare Data in Multiple Tables
    By Access_newbie in forum Queries
    Replies: 7
    Last Post: 07-26-2011, 11:35 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