Results 1 to 8 of 8
  1. #1
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376

    Add Unbound field to a form

    I am embarrassed to ask this as I should know the answer but for the life of me I cannot figure it out. I have a table that has employee names, date of hire, birthday, etc. I created a query that shows me how long they have worked for the company, age, etc and that works great.



    My issue is that I want to use that query result on a form as an unbound field but the field just shows "#Name?".

    I am sure it is an easy fix but I just cannot figure it out for the life of me.

    I cannot paste a copy of the file unfortunately.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

  3. #3
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    orange,

    I had already done that and I get the "#Name?" as the result in the text box, I must be missing something. I have built the expression in the control source, used the query in the control source, same result.

    I must be missing something foolish and I should know this, that what makes it so frustrating.

  4. #4
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    Are you using the DLookup function for the textbox control source? Is so,
    1. What's the name of the query?
    2. What's the name of the field in the query that you wish to display?
    3. What's the criteria you are using to select the desired record in the query?
    4. Is the lookup field in #3 numeric?

    Finally what is the textbox control source that is giving you #Name?

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

  6. #6
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    My issue is that I want to use that query result on a form as an unbound field but the field just shows "#Name?".
    What am I missing? If there is a query with a field that you want the textbox to show, why is the control unbound? Then again, the query has several fields so what exactly is supposed to be shown in the textbox? Surely not the values from all the fields in the query... Have to wonder if the form is bound or not. So many questions, so little info.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Dave14867 View Post
    ....... use that query result on a form as an unbound field .......
    Yes, I know this is a bit nit-picky, but a field CANNOT be unbound. A field is part of a table.
    You can, however, have an unbound CONTROL on a form.


    But if you have a calculated column in a query, you can bind that calculated column to a control on the form. (what Micron said )

  8. #8
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    ssanfu,

    Your absolutely correct, mis-statement on my part. I have though figured out what I needed to do and it is all set now. As usual I just had to think about it more, what comes so naturally to some doesn't for others, I am one of the others sometimes.

    Thanks Folks. As usual your questions make me think more about what I am trying to do and lead me to the answer.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-02-2019, 01:46 PM
  2. Sum unbound field in form footer
    By tagteam in forum Access
    Replies: 8
    Last Post: 04-13-2017, 02:10 PM
  3. Replies: 3
    Last Post: 11-29-2016, 10:03 AM
  4. Replies: 5
    Last Post: 01-30-2015, 02:45 PM
  5. Connecting Unbound Field to Form
    By hithere in forum Forms
    Replies: 1
    Last Post: 09-04-2013, 11:56 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