Results 1 to 5 of 5
  1. #1
    JefferyCT is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    2

    Select records to display in report.

    Ive been struggling with this for sometime, and no matter how many times ive tried to google it, i just cant seem to find my answer. Its probably glaringly obvious.

    My question is: How do I use an unbound checkbox, in a sub-form, to select specific records and then generate a report that references those specific ones i selected?

    Eg: the form/subform:

    Name Number Selected
    John Smith +27 234189347 X
    Peter Paul +27 879872319
    Mark Luke +27 8977541631 x

    The user then selects the records they want, then follow through to a report which shows only John and Mark' numbers, not Peter's

    Ive tried:
    1. adding a "selected" yes/no in the underlying tables, but this is not feasible do to table size, maintenance, etc.
    2. Adding an unbound checkbox in a continuous form/table - thick changes all occurrences of the checkbox to the same value


    3. Considered adding a custom field in a query, but not sure how i would do that without prompting for user input every time the underlying form is shown

    I know there is an answer out there, i just cant seem to think of it myself. Any help or suggestions are welcome.

    Thanks in advance,

    (For traffic reasons it may be important to note that my Access FrontEnd runs of a mysql database online.)

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Have a button on each line, when user clicks on button write PK to temp table.

  3. #3
    JefferyCT is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    2
    That's a good answer, the temp table will be local, so no server traffic. That's awesome. I'm still going to leave the thread open to see if there are other ideas, but I'll try yours and let you know. Thanks a million!

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    If there aren't too many records in the list, you could make it a listbox which allows multi-selection. This gets cumbersome with a large record count, tho.

  5. #5
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235
    I usually run a make table query (or delete/append) to push in a local table all the PK (you can run it from the loading event of your reporting form); that table also has the yes/no field you need [Selected]. You then use that table in the record source of your selector form. This way you can have your users have independent selections. With this approach you will get some network traffic (when getting all the PKs) but because you only add the indexed PKs the query(s) should be fast.

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

Similar Threads

  1. Replies: 21
    Last Post: 10-13-2016, 03:29 PM
  2. Select and display multiple records by name
    By confusedbutoptimistic in forum Queries
    Replies: 2
    Last Post: 05-08-2016, 11:00 AM
  3. Counting records in report from a select field
    By LaughingBull in forum Access
    Replies: 5
    Last Post: 08-23-2015, 12:09 PM
  4. Display Individual Records in Report
    By Luke in forum Access
    Replies: 2
    Last Post: 07-13-2011, 12:18 PM
  5. Report to display multiple records by date.
    By af01waco in forum Reports
    Replies: 1
    Last Post: 03-21-2009, 02:12 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