Results 1 to 8 of 8
  1. #1
    MFS is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235

    Graph shows information read by 4 seperate Queries

    Hello,



    Need some help.
    I'm trying to generate a graph that displays an expression from four seperate Queries, is it possible?
    The first bar would show the expression from Query 1, sencond from Query 2 and so on.

    Thanks,

    Mike

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    A single graph can have only one RowSource. All the queries would have to be somehow included in one sql statement as the RowSource. Do you want to provide the project for analysis?
    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
    MFS is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    Thank you,
    I'm trying to take the expressions from the "Downtime Queries" and show a line graph, on the "Main" form for each cells downtime, per day for a rolling 30 days.
    I'm having trouble attaching the project. I am trying to attach the 4 Queries, table and main form only and I can't get the file size below 600.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Zip with Windows Compression. 2mb zip allowed.
    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
    MFS is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    Maintenance.zip
    Dah, I guess I wasn't thinking. I've attached my whole DB. I'm sure it has a bunch of mistakes but still building it.
    Thanks again,
    Mike

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Can't add the elapsed time value. Needs to be decimal hours. Remove the Format function and use DateDiff. Remove the start and end time fields from query.

    If you want all cells on one graph, a single query should serve.

    SELECT Location, Today, Sum(DateDiff("n",[Cell reported down at what time],[Repair completed time])/60) AS Downtime
    FROM Downtime
    GROUP BY Location, Today;

    Do you want bar or line graph, you reference both.

    Here is the RowSource for the graph:
    TRANSFORM Sum([Downtime]) AS [SumOfDowntime] SELECT [Today] FROM [Downtime Query] GROUP BY [Today] PIVOT [Location];
    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
    MFS is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    I'm sorry June7 I'm just not understanding.

  8. #8
    MFS is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    Got it, works perfectly. Using a bar graph. Thank you so much. Hope to work with you again.

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

Similar Threads

  1. Sum of entries from seperate tables/queries
    By krutoigoga in forum Queries
    Replies: 4
    Last Post: 07-07-2011, 11:54 AM
  2. Count date entries from seperate tables/queries
    By krutoigoga in forum Queries
    Replies: 3
    Last Post: 06-30-2011, 12:48 PM
  3. Replies: 3
    Last Post: 01-10-2011, 10:31 AM
  4. Programmatically make queries read-only.
    By cementblocks in forum Queries
    Replies: 1
    Last Post: 05-14-2010, 10:13 PM
  5. Graph totals queries with different data
    By maggioant in forum Queries
    Replies: 0
    Last Post: 10-01-2009, 12:12 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