Results 1 to 4 of 4
  1. #1
    talktime is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    21

    Print Label when certian condition is met.


    i have a report that serves the pupose of reminder to students that they have not paid their fee of the months listed in detail section, listing of month varies student to student, some student have only current month fee due, some have 3 or 4 month fee due, i want a label "Last reminder" to print on those students whose outstanding fee is more than current month i.e. current plus previous months. if a student has only current month fee due, this label should not be printed on his reminder. a sample of my report designe is attached.
    Attached Thumbnails Attached Thumbnails report.jpg  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Best to use a textbox with an IIf expression in ControlSource to display text if condition is met. Just don't know enough about your db to advise how to test for the condition. Count the months listed in the Detail section?
    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
    talktime is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    21
    i have figured out some what, i put a text box in Student ID footer section and in the control source property i put the formula =sum([Amount], which gives me the total amount due for the student, if the amount is greater than 3600, it should display the label, if it isn't should not. but
    its works but a few exceptions, its working but in certain records when the amounts exceeding 3600 its not displaying the label, i don't know why its behaving like this, although there is nothing special with those records.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Try a textbox called something like CountMonths in the StudentID Header with expression: =Count(*) The textbox can be set not visible.

    Then the textbox for the 'label' would have expression: =IIf([CountMonths]>1, "Last Reminder", Null). Set this textbox visible but with no border if you don't a blank box to show.

    Might be able to do with one textbox: =IIf(Count(*)>1, "Last Reminder", Null)
    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: 1
    Last Post: 12-03-2012, 03:15 PM
  2. Autokey macro will not print reports using a condition
    By boywonder in forum Programming
    Replies: 2
    Last Post: 11-07-2011, 10:48 AM
  3. Replies: 5
    Last Post: 10-26-2011, 02:59 PM
  4. Replies: 0
    Last Post: 02-22-2011, 05:04 AM
  5. Replies: 9
    Last Post: 07-16-2010, 09:25 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