Results 1 to 3 of 3
  1. #1
    RAJESHKUMAR R is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    48

    SQL Statement to Update Query Results to a Form Textbox


    Dear Experts,

    I have below SQL Statement to count data from a Table which is working Fine!
    Code:
    SELECT Count(FIRMORDERS.Ref_Date) AS CountOfRef_Date
    FROM FIRMORDERS
    WHERE (((FIRMORDERS.[Ref_Date])=[Forms]![MENU]![FR_DATE]))
    GROUP BY FIRMORDERS.Ref_Date;
    The Support I am looking here is, I would want to transfer output of above results to a textbox i.e. named as [MENU]![TEXT15]

    Thanks & Regards,
    Rajeshkumar R

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,526
    redo the sql to just pull the records using the date, (not count them)
    put the sql in a query,

    txtBox = Dcount("*", "qsMyQuery")

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,818
    I would want to transfer output of above results to a textbox i.e. named as [MENU]![TEXT15]
    To do what? Only look at it, or store the result in a table? Generally speaking, you shouldn't store calculations, but if that's your intent, know that a calculated field (e.g. textbox) cannot be bound to a field.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Update form field with query results
    By seeya in forum Forms
    Replies: 2
    Last Post: 04-26-2017, 08:34 AM
  2. Replies: 5
    Last Post: 04-30-2015, 01:50 AM
  3. Replies: 1
    Last Post: 07-20-2012, 09:48 AM
  4. Replies: 3
    Last Post: 03-11-2012, 08:24 PM
  5. Query Results are Clickable to Update Form
    By chasemhi in forum Forms
    Replies: 0
    Last Post: 03-24-2011, 08:01 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