473,657 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Autogenerating chart

Hello!

How to prevent from autogenerating chart after opening a form with a
chart?

I would like to set chart parameters which are located in a form, and
then click on a button which let me create a chart. Now while opening a
form, this chart is generating without no parameters. I don`t want to
set default values of these parameters.

Could you help me?

I would be very grateful for help
I couldn`t find any solution in group archives...
Thank you
Marcin from Poland

*** Sent via Developersdex http://www.developersdex.com ***
Jan 5 '06 #1
4 1782
Red
well, it sounds like you could just use a chart.requery to refresh the
chart...

I would do this:
private sub Form_open()
chart.visible = false
end sub

private sub cmdButton_click ()
chart.requery
chart.visible = true
end sub

Jan 5 '06 #2


No I don`t use chart.requery while opening a form. I use it only after
selecting chart parameters and then I click on a button which include
chart.requery.

I am not at work now so I cannot check if chart.visible=f alse will help
but I think that the chart will be requering data from a query even if
chart is invisible. Am I right?

Do anybody have any idea how to fix my problem?

Thank you for all posts.
Kind regards
Marcin from Poland

*** Sent via Developersdex http://www.developersdex.com ***
Jan 5 '06 #3
Red
Well, yes, it will query upon form loading/opening..

Is the reason you dont' want it to query because the query takes
forever?

If so, you can set the recordsource of the chart to nothing, then add
the recordsource to the button, then requery...

i.e.

private sub cmbButton_click ()
chart.visible = true
chart.recordsou rce = Your SQL string here
chart.requery
end sub

Jan 5 '06 #4
Red
Also,

I have a form that my client uses to make a dynamic chart based up
multiple factors...

When the form opens, the records source for the chart is nothing, and
the chart is set to invisible. After the user selects the options,
he/she clicks a button, the chart's recordsource is made, it's
requeried, then set to visible. Then I have all sorts of ncei options
after that, including printing it, exporting it excel, etc etc...
~Red

Jan 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
12519
by: Brian Shade | last post by:
Hi all. I am having a bit of a problem with my Perl script and the creation of a chart. I can create the chart and create a new SeriesCollection. I then specify the XValues and the Values parameter of the first SeriesCollection object. I add another SeriesCollection, but I am only able to set the XValues and I get the following error when I try to set the Values parameter: OLE exception from "Microsoft Office Excel": Unable to set the...
8
5692
by: Prabhakar | last post by:
Friends, I have been migrating ASP applications from IIS4.0/NT4.0 to IIS5.0/W2K. All the applications working perfectly except one. This particular application will make use of asp chart object. Sub BuildGraph(rate(), name,color,chartHight,chartWidth)
1
2191
by: Jim | last post by:
I have this chart on a form. I'm trying to get this chart to render only if the user chooses to do so. This because of that the chart is quite complex and takes some time to render. I know that I probably should put it on a report and call that report from the form but for various reasons I need the chart on this form. In a table bound to this form I have a Yes/No field and then from a checkbox the user should get to choose if the form is...
22
6773
by: PeteCresswell | last post by:
I've been to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mschrt/html/vbobjtitleobject.asp, but still don't have a clue. For example, I've got a chart object namde 'grphStats' in a form named frmChart. ?Forms!frmChart!grphStats.Name returns "grphStats" as expected, but I can't get any further.
3
3421
by: StBond | last post by:
Hi everyone, I am new to Access and Visual Basic so things my be getting across a bit cloudy. I only started using VB for one week. I am having a little problem with the database that I am working on. I am working with MS Access 2002. And I am having a problem with one of my charts. I will explain how everything is laid out then go into details.
9
3066
by: Patrick.O.Ige | last post by:
I have a code below and its a PIE & BAR CHART. The values now are all static but I want to be able to pull the values from a database. Can you guys give me some ideas to do this? Thanks Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Declare your object variables
1
3828
by: Scott H. | last post by:
Hello: I am trying to use Crystal Reports from VS.NET 2003 to produce a simple line chart, where the x axis represents the number of measurements taken and the y axis represents the range of measurement values. There are two sets of points or measurements, so I would like a line on the chart for each set of values (two lines). I can produce the line chart on a VB.NET form correctly using an Infragistics UltraChart obeject. The data...
1
3167
by: Saintor | last post by:
This is for A97 in runtime or MDE mode. My intent was to define a temporary query using the recordsetclone property / filter / orderby. The controlsource of my chart would be based on a grouped query based on this temporary query. Is this the best way or is there another one more efficient? Is it possible in a runtime environment to change the format of an axis (by Week ---> by Month) or the chart controlsource on report opening?
1
5003
by: cubekid | last post by:
I am using OWC 11 in my new web application for displaying charts. Is it possible in OWC 11 to combine and display a column and a line graph (Looking like they overlap each other)? I tried it using this code but it doesn' t work. int width = 400; int height = 300; Bitmap bmpChart = new Bitmap(width, height, PixelFormat.Format16bppRgb555);
0
8384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.