Results 1 to 4 of 4
  1. #1
    alberigo67 is offline Novice
    Windows 7 64bit Office 365
    Join Date
    May 2020
    Posts
    8

    Problems with expressions buider

    Hi to everyone,


    can anyone told me where is the error in this code in the expression builder?

    =Right(Year([Date]);2)

    the result of the function goes insede a textbox but what it returns is:

    #Nome?

    Thanks for your help.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Try:

    Code:
    =Right(Year(Date());2)
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    Quote Originally Posted by alberigo67 View Post
    Hi to everyone,
    can anyone told me where is the error in this code in the expression builder?

    =Right(Year([Date]);2)

    the result of the function goes insede a textbox but what it returns is:

    #Nome?

    Thanks for your help.
    If [Date] is a field you should change the name as date is a reserved word.
    Are you sure you want a semi-colon instead of a comma before the 2?
    (Not sure where your from and I believe some non-english versions of access use ; instead of ,)

  4. #4
    alberigo67 is offline Novice
    Windows 7 64bit Office 365
    Join Date
    May 2020
    Posts
    8
    Quote Originally Posted by Bob Fitz View Post
    Try:

    Code:
    =Right(Year(Date());2)
    thank you....your solution is the right one.

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

Similar Threads

  1. If Then Expressions?
    By FoxMan250 in forum Access
    Replies: 34
    Last Post: 05-08-2014, 12:30 PM
  2. Complicated Expressions
    By L52P in forum Access
    Replies: 1
    Last Post: 10-20-2013, 01:13 AM
  3. Expressions in DLookUp
    By Jim Pap in forum Programming
    Replies: 1
    Last Post: 12-22-2012, 12:02 PM
  4. implement expressions
    By quandore in forum Access
    Replies: 7
    Last Post: 01-11-2012, 03:48 AM
  5. Query Expressions
    By Andrea in forum Queries
    Replies: 6
    Last Post: 03-03-2011, 03:57 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