Results 1 to 3 of 3
  1. #1
    PoolHallJunkie is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    14

    Using Multi-Line text box to pulls specific records to a report

    Greetings,

    I'm trying to have users enter multiple IDs from a table into a text box separated by newline chars, and then (once they press a button) have some sort of macro or code read each line and pull a report I've created based on the ID. Is that possible?

    Example:

    Table
    ID DataPoint1 DataPoint 2 DataPoint 3
    1 d1 d4 d7
    2 d2 d5 d8
    3 d3 d6 d9

    ---------------------------------------------------------------------------

    Text Box (User will enter values and hit OK)
    2
    3

    -----------------------------------------------------------------------------

    Report

    ID: 2


    DataPoint 1: d2
    DataPoint 2: d5
    DataPoint 3: d8
    -------Page Break------------
    ID: 3
    DataPoint 1: d3
    DataPoint 2: d6
    DataPoint 3: d9

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Access is built to use tables. Put the entries into a table (1 per line, no CR needed) and access can use a query to process it.
    NO CODE NEEDED.

  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
    Have users enter free form text and use that as criteria to filter a report? That is thinking outside the box but really just making work for everyone. Why should they have to enter the data points anyway? Isn't that data in a table?

    There are several ways to accomplish. Ranman's suggestion may be the simplest. Other options:

    A yes/no field in table, check the records you want to include in report, apply filter on this field.

    Could select the IDs from a multi-select listbox and use those selections as filter criteria. However, this method requires VBA. http://allenbrowne.com/ser-50.html
    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. INSERT INTO from multi line text box
    By Only4Access in forum Forms
    Replies: 3
    Last Post: 01-08-2014, 08:06 PM
  2. Replies: 7
    Last Post: 06-04-2013, 01:10 PM
  3. Replies: 2
    Last Post: 05-22-2012, 03:29 PM
  4. Replies: 6
    Last Post: 04-07-2011, 12:33 PM
  5. Querying Multi Line Text Box in MS Access Forms
    By spindlebeakin10 in forum Queries
    Replies: 5
    Last Post: 12-09-2010, 05:50 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