Results 1 to 8 of 8
  1. #1
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199

    Possible to pull a query into a form design?

    Hello



    Is there a way to pull data into my form so that I can see current stats about my table in the same box as where I'm entering new data?

    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    What do you mean by 'current stats about my table'? What information do you want to show? What kind of 'box' - combobox, listbox?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    Thanks June7, basically I want to query my table, it's a project tracking database, to see how many hours I've spent that day on each of my projects. It would be useful to see this information in my input form...like on the right column.



    Quote Originally Posted by June7 View Post
    What do you mean by 'current stats about my table'? What information do you want to show? What kind of 'box' - combobox, listbox?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    That sounds like an aggregate query or a DSum() domain aggregate function. Can't be more specific without knowing data structure. What is the 'right column'?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    Hey June,

    By right column i simply mean the right hand side of my input form...just where I wanna place this. Could you be more specific about how I would use DSum to get the data to show on my input form? Here's a link to my DB:

    https://onedrive.live.com/redir?resid=D8D255DA4B632417!33049&authkey=!ABkCH1 RX5W8OZzM&ithint=file%2c.accdb

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Elapsed time will never cross midnight?

    You are using multi-value field. Do not recommend - I NEVER use multi-value field.

    You have a record with no brand or date, only time. That record will not be included in any day's summary.

    Expression in textbox: =DSum("Field1","Table1","[Date]=#" & [Date] & "#")

    Access Help has more info on domain aggregate functions.

    Date is a reserved word. Should not use reserved words as field names.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    accessmatt is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    199
    Appreciate your input so far June7 but instead of summing all records, do you know of an Access formula which would show a break down of entries over course of a day (start time, end time, duration)?

    Thanks,

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Break down to what - each Brand/Indication entry? This is a multi-value field. How should Access 'know' how much time to assign to each selected value?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Pull not one but ALL items in a query
    By Andycam in forum Queries
    Replies: 2
    Last Post: 02-06-2013, 04:35 PM
  2. New form design query
    By pytheus in forum Forms
    Replies: 3
    Last Post: 01-22-2013, 12:51 PM
  3. Pull Value from From Using Append Query
    By kedstracker in forum Queries
    Replies: 1
    Last Post: 06-21-2011, 03:12 PM
  4. Replies: 1
    Last Post: 03-07-2011, 10:48 AM
  5. Replies: 1
    Last Post: 02-14-2007, 07:27 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