Results 1 to 2 of 2
  1. #1
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141

    Formula and Text inside a Text box

    I have created a form where in a text box is given the following formula:

    =IIf(IsNull([submit]) And IsNull([ReviseDeadlineDate]),([DeadlineDate]-[text24]),([ReviseDeadlineDate]-[Text24]))

    where Text24 is the current date. the result that it should show is the number of days and the word "Day/s"

    3 Day/s

    Can you please assist me in putting the word Days/s in the formula.

    Thank you.

    Trident

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Could just put the string into a label control next to the textbox.

    or

    =IIf(IsNull([submit]) And IsNull([ReviseDeadlineDate]),([DeadlineDate]-[text24]),([ReviseDeadlineDate]-[Text24])) & " Day(s)"
    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. Can I use a DLOOKUP inside of a text box?
    By Access_Novice in forum Forms
    Replies: 5
    Last Post: 01-26-2014, 03:56 PM
  2. Text inside an unbound
    By Ruegen in forum Forms
    Replies: 3
    Last Post: 08-22-2013, 10:17 PM
  3. How to put a prompt message inside a text box
    By usmcgrunt in forum Forms
    Replies: 3
    Last Post: 11-05-2010, 09:55 AM
  4. How to vertically align text inside a text box ?
    By alexcalgary in forum Forms
    Replies: 2
    Last Post: 10-06-2010, 08:44 AM
  5. Rounded number inside of text
    By Lockrin in forum Access
    Replies: 6
    Last Post: 01-27-2010, 12:26 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