Results 1 to 3 of 3
  1. #1
    rankhornjp is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2011
    Posts
    46

    Skip a row number based on a value

    I have a report that is set up to count students in a class. Looks like this:

    # Student Cert #
    1 John Smith 12340
    2 Joe Jones 12341
    3 VOID 12342
    4 James Adams 12343
    5 Tom Arnold 12344



    I want it to do this:

    # Student Cert #
    1 John Smith 12340
    2 Joe Jones 12341
    VOID 12342
    3 James Adams 12343
    4 Tom Arnold 12344


    The row number is just a text box (=1) with the running sum turned on.

    On this report I have to report all the certificates used for this class, in order. So I can't put the voided ones at the bottom.

    I tried an IIF statement in the text box =iif([student]="VOID", "", 1)
    This skips the VOIDs but starts over at 1 (no matter if it is set to "over group" or "over all"):

    # Student Cert #
    1 John Smith 12340
    2 Joe Jones 12341
    VOID 12342
    1 James Adams 12343
    2 Tom Arnold 12344



    Any suggestions?

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    this best belongs in the Reports area.

    there is no solution when using the number feature of the Report object. you would have to consider applying the numbering as part of the record set (query).

    sorry not to be more helpful.

  3. #3
    rankhornjp is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2011
    Posts
    46
    Thought that's where I put it....

    I put it there now.

    THanks for the heads up

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

Similar Threads

  1. Replies: 4
    Last Post: 07-27-2011, 12:42 PM
  2. Replies: 4
    Last Post: 12-03-2010, 03:05 PM
  3. Insert x number of rows based on value
    By opopanax666 in forum Programming
    Replies: 4
    Last Post: 10-26-2010, 03:26 AM
  4. Suggest number based on already used numbers
    By Patience in forum Access
    Replies: 3
    Last Post: 06-16-2010, 04:26 AM
  5. Replies: 5
    Last Post: 10-08-2009, 05:15 AM

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