Results 1 to 2 of 2
  1. #1
    10 Gauge's Avatar
    10 Gauge is offline Getting the hang of it...
    Windows XP Access 2007
    Join Date
    Feb 2011
    Location
    Fredericksburg, VA
    Posts
    202

    Alert Message Code Problem

    This is a basic one but need a little help. I need a text box to pop up an alert if the current date is more than 365 since the last recorded date in a table.

    Here is the code I am trying to use for this, however I'm getting "#Error" when I give it a shot.



    =IIf(DMax("EventDate","PMEvents","AssetID = " & [Forms]![Asset Details]![AssetID])-Int(Date())>365,"ONE YEAR PM PAST DUE")

    I think it has something to do with not using an Integer as the first expression, and I'm unsure if you can have an Int() point to an unlinked table and referenced via a current forms ID # (such as can be done with Domain functions).

    Any help is greatly appreciated, thx!

  2. #2
    10 Gauge's Avatar
    10 Gauge is offline Getting the hang of it...
    Windows XP Access 2007
    Join Date
    Feb 2011
    Location
    Fredericksburg, VA
    Posts
    202
    It's confirmed, I'm stupid. My "EventDate" field is actually "PMEventDate". No wonder I was pulling my hair, out. Thx anyhow.

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

Similar Threads

  1. Automated Data Collection - Alert Required
    By MarkHenderson in forum Access
    Replies: 1
    Last Post: 11-25-2010, 06:21 AM
  2. Custom error message problem
    By thekruser in forum Programming
    Replies: 10
    Last Post: 10-06-2010, 05:14 PM
  3. Replies: 1
    Last Post: 02-10-2010, 12:39 AM
  4. Customs Alert Messages on specific dates
    By edupi in forum Access
    Replies: 1
    Last Post: 05-08-2009, 04:51 AM
  5. Replies: 0
    Last Post: 01-22-2009, 03:38 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