1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

MS ACCESS 2002 (SP3) Page numbers

Discussion in 'Business Applications' started by Keebellah, Apr 18, 2008.

Thread Status:
Not open for further replies.
  1. Keebellah

    Keebellah Trusted Advisor Thread Starter

    Joined:
    Mar 27, 2008
    Messages:
    6,608
    First Name:
    Hans
    :confused::confused::confused:MS Access and it's hidden features!!!!
    I have creatde a report, no problem there, but the following occurs.
    Ik have a formula that works perfectly:
    = [Page] & " van " & Round((([totaal]-44)/61)+0.5,0)+1
    I reset the Page to 1 for each group.
    The variable [totaal] contains the number of lines for this particular section:
    It's a list of student numbers and the exams they have taken over a number of years
    Each exam code is one line.
    I have a query which is a select distinct Student number and counts the number of exam codes.
    STUNR TOTAAL
    000001 56
    000002 67
    000003 130
    etc etc
    The list is about 3000 student numbers.

    The formula then displays the Page 1 of 3 in the case of 67 lines

    That works fine too.
    I run the report and at first glanec it's OK.
    I go to the last page, no problem
    Then flip back page by page and someweher isn the middle and not for all selectiones instead op showing Page 1 of X it starts showing Page 2345 of 3 where 2345 is the actual page if counting pages.

    I have checked the query and there are no negative numbers in the TOTAAL field and well, thats the problem there is nothing logical to make this happen.

    I have attached some screenshots on a PDF sheet showing page numbers in one set or pages.
    This report I reduced to 132 pages and still it happens.:confused::confused:
     

    Attached Files:

  2. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    Have you thought of using VBA code set the values, it can still use your formula to do so,
    Where on the Report have you placed your Pagina and Van Fields?
    In the Report Header?
    Page Header?
    Group Header?
    Detail?
     
  3. Keebellah

    Keebellah Trusted Advisor Thread Starter

    Joined:
    Mar 27, 2008
    Messages:
    6,608
    First Name:
    Hans
    Sorry that it took me so long to answer. Thank you for the tip, but that was already taken into account.
    The fact is that it runs OK but all at once it shows the actual pagenumber instead of the page 1 value which is forced when a secion changes.
    If I reduce the number of records (thus also the nr of pages) the same thing happens and it is not always with the same record.
    ?????? On of those Office secrets???
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/704908

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice