Results 1 to 2 of 2
  1. #1
    foursore is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    1

    Displaying query result in a text control in a form

    I have the following tables:
    - Clients


    - Payments and charges (client id, sum, date). Sum is positive or negative (payment / charge).

    Each client has a "Zero Debt Date" field. When calculating the debt of the student I want to calculate only the debt incurred since that date.
    I easily created a query that takes a client id and returns the debt since the Zero Debt Date.

    Now I want to show the results in a form.
    I have a form in which I display a single client with a subform that shows the payments / charges.
    I want to have - in the main form - a control that shows the current debt of the client - calculated from the ZDD date.

    I created a text box control, and tried using SQL inside, I also tried DSum, and nothing works. I get a "#Name?" message in the box.

    Advice?

  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
    SQL won't work, but a DLookup or DSum should. Perhaps the syntax was off:

    http://access.mvps.org/access/general/gen0018.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. displaying query result as a subform
    By uzair_rosli in forum Access
    Replies: 4
    Last Post: 02-26-2013, 04:29 AM
  2. Replies: 12
    Last Post: 06-25-2012, 01:42 PM
  3. Replies: 1
    Last Post: 09-28-2011, 09:48 PM
  4. Replies: 9
    Last Post: 09-26-2011, 09:16 PM
  5. Replies: 2
    Last Post: 05-13-2011, 02:34 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