Results 1 to 7 of 7
  1. #1
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61

    Setting an alert that a payment is overdue

    I have a reservation database that holds data for all guests with bookings; in it, I have the folllowing fields:



    One for their outstanding balance "Balance 5" (circled red in the attachment)
    One that holds the due date for the balance of their holiday "Due Date 2" (circled blue in the attachment)
    One for an alert message "Payment" (circled green in the attachment)

    I'm trying to create something (possibly an iif argument ?) which will show a message of OVERDUE in the "Payment" field if both of the following are true:

    "Balance 5" is greater than £0.00 and "Due Date 2" is less than today's date.

    You can see from the attachment that I've had a go but it isn't working, it keeps bringing up the Name error message - can anyone help please ?
    Attached Thumbnails Attached Thumbnails Overdue Issue.JPG  

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    A Little clarification. You have the problem in the Payment Field but your showing the textbox for Due Date 2. So we don't have a clue as to what is in the field that you're asking about. Post the Control Source for the field your having a problem with and we may be able to help better.

  3. #3
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61
    Sorry, am new to this...

    The control source for the field [Payment] is:

    iif([Balance 5]>"0" AND [Due Date 2]>Date(),"Overdue","")

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Have you tried :
    iif([Balance 5]>0 AND [Due Date 2]>Date(),"Overdue","")

    Thanks

  5. #5
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61
    Thanks for that, I tried that and it's still bringing up the "Name" error thingy.

  6. #6
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Here's a test to narrow down the error: First Use IIF([Balance 5] > 0,"Overdue","Not Overdue") , second use the second part IIF([due date 2]>Date(),"Overdue","Not Overdue") Make sure which one errors. Then we can narrow it down from there.

  7. #7
    bellevue is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2012
    Posts
    61
    Thanks for that.

    I tried them both and they both "error'd"; however, when I put a "=" before both, they, individually, worked fine. I then put the "=" before the original combined argument, it all worked fine...problem solved !!!!

    Thank you so much for your time (and patience), I really do appreciate it; I'll mark it as solved but let me know if/how I can show my appreciation.

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

Similar Threads

  1. Replies: 5
    Last Post: 04-01-2012, 07:21 AM
  2. Student Payment Query not working
    By jcpty in forum Queries
    Replies: 10
    Last Post: 12-28-2011, 12:22 AM
  3. lockout for non payment of software support
    By stevepcne in forum Security
    Replies: 0
    Last Post: 11-21-2011, 08:37 PM
  4. Multiple Payment Instances
    By luckysarea in forum Queries
    Replies: 3
    Last Post: 04-21-2011, 03:29 PM
  5. Client Payment History
    By GMatos78 in forum Access
    Replies: 4
    Last Post: 04-24-2010, 09:19 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