473,503 Members | 1,629 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 1771
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=false 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.recordsource = 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
12481
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...
8
5669
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....
1
2184
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...
22
6738
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...
3
3397
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...
9
3059
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 ...
1
3811
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...
1
3159
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...
1
4998
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...
0
7198
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,...
0
7072
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...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
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...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4666
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...
0
3160
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...
0
1498
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 ...
0
373
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...

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.