Results 1 to 5 of 5
  1. #1
    Charandpat is offline Novice
    Windows 10 Access 2019
    Join Date
    Jul 2022
    Posts
    5

    IIf Statement Help


    Hi, I have duplicate names(labeled CombinedName) and I want to count it as 1 for the first time it shows up and then when it shows up again in query I wanted it displayed as Counted. So I am trying to add a column that will basically show it as 1 or counted. Here is what I have so far. Desired outcome is below with the yellow circled area
    Attached Thumbnails Attached Thumbnails Screenshot 2022-07-30 092902.png   Screenshot of desired outcome.png  
    Last edited by Charandpat; 07-30-2022 at 10:54 AM. Reason: Forgot Attachment

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    show an example of the outcome as required - you appear to want to mix numbers and text in one column, and your code seems to to refer to a field called 'counted'

  3. #3
    Charandpat is offline Novice
    Windows 10 Access 2019
    Join Date
    Jul 2022
    Posts
    5
    Desired Outcome

  4. #4
    Charandpat is offline Novice
    Windows 10 Access 2019
    Join Date
    Jul 2022
    Posts
    5
    I can change it to 1 and 0 (instead of counted) if that is easier and keeps it as numbers

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    you need something unique to order the data - so in your example you have the combined name - but that is not unique, you could perhaps use hours of work, but that will fall down if teo records have the same hours. So uo need a unique ID for each row

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

Similar Threads

  1. Replies: 5
    Last Post: 11-01-2021, 08:09 AM
  2. Replies: 11
    Last Post: 04-29-2015, 01:38 PM
  3. If statement
    By cbende2 in forum Access
    Replies: 6
    Last Post: 08-04-2014, 02:17 PM
  4. if statement in sql statement, query builder
    By 54.69.6d.20 in forum Access
    Replies: 4
    Last Post: 09-11-2012, 07:38 AM
  5. Replies: 7
    Last Post: 08-17-2011, 01:49 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