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

    Button to execute graph data


    Hello,
    Ok, I'm trying to execute a query for a graph only after the form is open and a command button is pressed and not when the form is opening. See the graph is trying to search for data that hasn't been specified yet in my text boxes when the form is first opened, slowing the form down.

  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,770
    Maybe leave the graph RowSource blank and use code to set and refresh.
    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
    I thought of that, but had some issues with the code.
    I think I'll revisit that option again

  4. #4
    SMC's Avatar
    SMC is offline Master Ninja
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Columbus, OH
    Posts
    28
    I have a function like this in one of my databases. I use it to track Mill wear and cobble rates.
    On my form I input two dates (default value is set to nothing) and then press a button which runs a query and then opens a report with graphs.

  5. #5
    MFS is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    That is my current method, what happens is that when the form opens it tries running the Query searching for nothing.

  6. #6
    SMC's Avatar
    SMC is offline Master Ninja
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Columbus, OH
    Posts
    28
    My graph is opened in a new window. How important is it to have the graph on the form page? you could always have it open in another form or even a report I think.

  7. #7
    MFS is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    Ahh, Ok, I see what you are saying. Sure!! I guess I could do it that way.
    Thanks

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

Similar Threads

  1. Desire Data Execute
    By Eeshan in forum Access
    Replies: 6
    Last Post: 07-18-2013, 11:32 AM
  2. Form Button to Execute Disabled Ribbon Command
    By stwalke2 in forum Programming
    Replies: 5
    Last Post: 04-29-2013, 01:00 PM
  3. Graph on Form - Overriding data
    By Gabriel2012 in forum Forms
    Replies: 6
    Last Post: 02-19-2013, 10:18 AM
  4. Replies: 6
    Last Post: 02-29-2012, 03:13 AM
  5. Replies: 3
    Last Post: 01-10-2011, 10:31 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