Results 1 to 4 of 4
  1. #1
    newyorkyankee is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    11

    Question How to make a button show the result of a query in a subform?

    How to make a query be displayed in a subform (in datasheet mode) with the criteria inserted in a text box (on the main form), after pressing a command button to run it?
    Last edited by newyorkyankee; 10-31-2012 at 08:45 AM. Reason: Clarifying the post because the previous one had too many unimportant information.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    You want a multi-value field? I NEVER use multi-value fields but that's what your table looks like.
    http://office.microsoft.com/en-us/ac...001233722.aspx
    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.

  3. #3
    newyorkyankee is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    11
    Hello June7, yes this is the case of a multi-value field and you're right, they suck. So my strategy is to first convert the text attributes into numerical attributes and then split them in records, because it's easier to deal with numbers than strings.

    I will re-write the thread to be more specific. Thanks for helping!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Build a query that expands the multi-value field to separate records, as demonstrated in the referenced link. If you have a table that associates the string values with number ID, join that table to the expanded query. Can then run UPDATE or MAKE TABLE actions.
    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. show a query result in a text box
    By mikael in forum Access
    Replies: 2
    Last Post: 09-13-2012, 02:17 AM
  2. Replies: 2
    Last Post: 05-30-2012, 07:53 AM
  3. Replies: 5
    Last Post: 04-06-2012, 10:59 AM
  4. Replies: 1
    Last Post: 09-28-2011, 09:48 PM
  5. Replies: 10
    Last Post: 12-31-2010, 12:35 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