Results 1 to 4 of 4
  1. #1
    Xterra14s is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    May 2016
    Posts
    32

    Notification in access?

    What I want to do is have the circled field in the attachment I posted have certain notification appear based on the selection from the machines and supplies drop down. For example, if said machine is allowed to be ordered once every three months and the last order date was 2 months ago I want it to display the last ordered date in red like a notification. If its after three months then the field is left blank. Is this possible? I feel like IIF statements might help. For example, if said machine is selected and the last date is less than 90 days display message "Machine was ordered less than 3 months ago". The goal of this is to keep the end user from ordering patient equipment before their due date.



    Click image for larger version. 

Name:	Notifications.PNG 
Views:	17 
Size:	39.2 KB 
ID:	25397

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    this box will be a subform.
    create a query to produce the messages you want. It will calculate the time and the message.
    the subform will show this result.

  3. #3
    Micron is online now Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,776
    Is that control bound to anything (I think not)? If so, you can't enter an expression into it. If not, what is it? A textbox? If so, you'll need a combination of a DMax expression and Conditional Formatting. You can't enter a sql statement as a control source for a textbox, but you can use DMax with an expression that returns the last date value, or nothing if nothing satisfies the criteria part of the lookup. See the use of DMax here http://www.techonthenet.com/access/f...omain/dmax.php

    Once you have that, use conditional formatting to format the colors you want for the textbox background or font. Will any of this keep the user from ordering anything that shows up in red, or does it really just warn someone who may order it anyway? I see by your posted image that you use spaces in your field names (bad practice). Maybe you should take a look at some db object naming recommendations.
    http://www.access-programmers.co.uk/...d.php?t=225837
    http://access.mvps.org/access/general/gen0012.htm
    http://allenbrowne.com/AppIssueBadWord.html
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    And there is a field that begins with a number (911). The Access gnomes can get touchy when objects begin with a number - ALWAYS begin object names with letters.

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

Similar Threads

  1. Notification mail
    By patrokos in forum Queries
    Replies: 3
    Last Post: 01-26-2015, 01:11 PM
  2. Email Notification
    By Ariuser in forum Programming
    Replies: 1
    Last Post: 01-20-2012, 03:44 PM
  3. Popup notification
    By imintrouble in forum Queries
    Replies: 1
    Last Post: 01-19-2012, 03:28 PM
  4. query notification
    By imintrouble in forum Queries
    Replies: 3
    Last Post: 01-18-2012, 10:00 AM
  5. check box notification
    By nichmeg in forum Programming
    Replies: 6
    Last Post: 10-29-2011, 11:29 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