Results 1 to 3 of 3
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    queries on forms

    Hi



    I have created a simple query which if I run gives exactly the result I want.

    I want it to display in a fild on a form so I added a test box and in the proporties---control source --opened the expression builder and added into the window

    [TotalAnnualIncome]![SumOfCost]

    I get the error #Name?

    Can someone tell me whatnthe error means

    thanks

    Ian

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Use the Query as the Control Source of your entire Form, and then you will be able to just drag and drop the fields from the Field box, and everything will automatically be linked.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    If this is the formula of a text box, then the txtBox.rowsource must have an equal sign before the field.
    =Textboxname.

    but what you have is not a formula and not a reference to a field.
    =txtBox1 * 3.14
    or
    [myField]

    which do you want, a field, or formula?

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

Similar Threads

  1. Replies: 9
    Last Post: 08-27-2014, 11:34 AM
  2. Which forms use which queries.
    By polisasimo in forum Forms
    Replies: 1
    Last Post: 06-22-2014, 12:22 AM
  3. Forms and queries
    By MalvinkaAccess in forum Access
    Replies: 4
    Last Post: 03-15-2013, 12:25 PM
  4. Forms and SQL Queries
    By springboardjg in forum Queries
    Replies: 1
    Last Post: 06-07-2011, 06:18 AM
  5. Replies: 4
    Last Post: 04-01-2009, 08:49 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