Results 1 to 8 of 8
  1. #1
    Raddle is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2021
    Posts
    60

    Dashboard Design

    Hi

    Am trying to pull together a dashboard, on which I'd like to have several pieces of information displayed.

    however, a form is bound to a query I think so I may not be able to say have table A data and table B data summaries on the same page.

    Is there a way around this?



    Can I just plop a few labels on the form, with some free SQL which pulls data out as needed and displays it?

    Thanks in advance.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sounds like subforms would solve your problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    A form doesn't have to be bound to anything.
    Create a bunch of summary queries and then pull the data from them. You can do that onto a sub form if it's say a "Top 10 Clients" list, or if it's simply single line points of interest (Value of x this month) use a DLookup() from a summary query or a Dsum() to get the number into an unbound control on your dashboard.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    Raddle is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2021
    Posts
    60
    So I created a query to count the unique records in my main table.

    And then on a form I inserted a text box with the following Control Source

    =DLookUp([qry_CountMainData],[fieldnameIcounted])

    ..but I get ?Name error.

    Any hints ?

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Need to surround the paremeters with double quotes?

    Why not look up the syntax?

    https://support.microsoft.com/en-au/...b-bed10dca5937
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    Raddle is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2021
    Posts
    60
    Thanks for that and appreciate the syntax steer.

    =DLookUp("[fieldnameIcounted]","qry_CountMainData")

    So the first arg is the field from the query where I counted the records, so the query returns a single number
    The second is the query name
    As there is no criteria I left that out

    Now I get a new error, which actually states #Error

    Am I on the right track at least?

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    You have an I in there? for the fieldname/alias. The names have to match.
    Could likely use Dcount() with "*" for first parameter.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  8. #8
    Raddle is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2021
    Posts
    60
    I was masking the actual field name. I have to do that or I might get a done away with !

    So, this is good now. I went back to Dcount * as you suggested and got a result! So exciting, seriously.

    My plan now, is to tip a few of these on to a form so we can see %s of various things, and left to do counts etc

    You have helped immensely! thank you.

    Case closed

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

Similar Threads

  1. Access Dashboard Design Feedback
    By theviking in forum Access
    Replies: 7
    Last Post: 08-23-2019, 08:30 AM
  2. Replies: 6
    Last Post: 12-11-2017, 06:20 AM
  3. What is wrong with using a dashboard
    By Lou_Reed in forum Access
    Replies: 4
    Last Post: 06-21-2017, 12:58 AM
  4. Dashboard setup
    By anastam in forum Access
    Replies: 1
    Last Post: 07-12-2016, 12:00 PM
  5. Replies: 5
    Last Post: 07-04-2016, 02:18 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