Results 1 to 3 of 3
  1. #1
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159

    #Name? error showing in Text box.

    When I sent a copy of my database to another person (zipped the file, he extracted the files, he saved it on his desktop) there is a field on one of the forms that determines someone's age based on the date given.

    The field computes properly on my laptop and on another desktop here at the house, but when he opens it on his computer the Age field on the form displays as : #Name?

    Anyone know what is going on here?

    Here is the expression entered for the Control Source, I had him check his, and it is the same:


    =DateDiff("yyyy",[DoB],Now())+Int(Format(Now(),"mmdd")<Format([DoB],"mmdd"))

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'd suspect a reference problem:

    Access Reference Problems
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    yes sir is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    159
    Problem fixed.

    I had to go to the record source for the form and add a column like this:

    Age: DateDiff('yyyy',[nameoftable]![DateofBirth],Date())

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

Similar Threads

  1. Control Source for Text Box (#error)
    By km8415 in forum Forms
    Replies: 3
    Last Post: 06-27-2010, 10:45 AM
  2. Field returns error when I import Text Files to Access
    By geng in forum Import/Export Data
    Replies: 3
    Last Post: 06-01-2010, 02:20 PM
  3. #Name? error in Form text box.
    By aligahk06 in forum Forms
    Replies: 6
    Last Post: 04-24-2010, 11:21 PM
  4. Text too long, error message
    By taylormotm in forum Access
    Replies: 13
    Last Post: 06-18-2009, 07:24 PM
  5. Replies: 2
    Last Post: 04-29-2009, 11:50 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