Results 1 to 2 of 2
  1. #1
    AccessForumUser is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    19

    help with a code for separating lookup values from a table to display in a form

    Hello, i'm new to access and am trying to figure out how i can split lookup values from a table to show individual results on a form.
    I've made an example of what i'm trying to accomplish and was hoping someone could help me out with the code portion?



    If you run the form and enter a value range of 2017-07-01 to 2017-07-31 it should come back with 6 results..
    My question is, HOW do I show the individual results from the total?

    I've played around with the IIF and Val commands with no success. help! Thanks..
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Don't think needs to be a Totals query.

    Expression in the summary textbox can be simply: Count(*)

    Expressions in other textboxes like: =Sum(IIf([PhoneType]="Broken",1,0)) or =Count(IIf([PhoneType]="Broken",1,Null))

    I NEVER use dynamic parameterized queries. Too hard to validate user input. I prefer VBA code to construct criteria and apply to form Filter property. Review: http://allenbrowne.com/ser-62.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. Replies: 3
    Last Post: 06-02-2017, 03:49 PM
  2. Display all the lookup values found
    By boboivan in forum Access
    Replies: 2
    Last Post: 02-22-2016, 07:40 AM
  3. Replies: 3
    Last Post: 10-28-2015, 12:38 PM
  4. Display lookup value in form, not code.
    By lggerhard in forum Forms
    Replies: 2
    Last Post: 09-10-2014, 06:57 PM
  5. How to use lookup table values in a form as a Label
    By MP BILL in forum Database Design
    Replies: 12
    Last Post: 08-09-2012, 06:13 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