Results 1 to 3 of 3
  1. #1
    carterlangley is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Location
    Rothienorman, Scotland
    Posts
    15

    Setting a Textbox Record Source

    Hi all,

    I would like to put a textbox onto a form that displays the value from a query I have.


    Now, whenever I put the control source of the textbox to the query, it is coming up with a #name error.

    This is the sql behind the query
    Code:
    SELECT Department.DepartmentName FROM Department INNER JOIN Client ON Department.[DepartmentID] = Client.[DepartmentID];
    That returns fine

    Just to now get that returned value into a textbox. Any ideas please?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    in the form property: RECORD SOURCE gets the query.
    in the form ,display the property of the textbox,
    data tab
    set CONTROL SOURCE, to the field in the query the box will show data from.

  3. #3
    carterlangley is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Location
    Rothienorman, Scotland
    Posts
    15
    Thanks ranman256
    You've put me on the right track to get this solved.

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

Similar Threads

  1. Setting Control Source Property Issue
    By Sarah11 in forum Forms
    Replies: 2
    Last Post: 09-23-2017, 10:37 PM
  2. Replies: 14
    Last Post: 12-29-2016, 12:34 AM
  3. Form with Subreport and setting record source.
    By Monterey_Manzer in forum Forms
    Replies: 3
    Last Post: 02-14-2013, 05:14 PM
  4. Replies: 17
    Last Post: 02-08-2012, 10:06 AM
  5. Replies: 16
    Last Post: 01-16-2012, 09:43 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