Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2005, 04:06 PM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chart Refreshing problem.

Hi, I am making this program in VBA where i have an X-Y chart whose data is determined by a query. Now I have to refresh the chart to show new values selected if i press some button on that form where chart is located. So i clear the chart so that no previous point on chart remains. but it gives an error "Cannot find seriescollection property of the chart class"
but when i press F8 and F5 again, then it compiles. Can someone help me with this please.

Dim cha as Chart
Dim sr as series
qry = "select price, volumes from price_table"
MainForm.ChartXY.RowSource = qry
set cha = MainForm.ChartXY.Object
cha.clear
MainForm.ChartXY.RowSource = qry
set cha = MainForm.ChartXY.Object
Set sr = cha.seriesCollection(1) <--- stops here with the error message. But i press an F8 from here after the error. it runs. please help me.

////////////////////
then further code....





Similar Threads
Thread Thread Starter Forum Replies Last Post
refreshing problem bhuwan81 Beginning PHP 1 April 10th, 2007 07:12 AM
Problem with refreshing the page fozia_izhar .NET Framework 1.x 1 March 24th, 2007 02:18 PM
DataGrid refreshing Problem param99 ASP.NET 1.0 and 1.1 Professional 1 November 27th, 2006 10:08 AM
refreshing XML withour refreshing the page sasidhar79 XML 1 January 12th, 2005 05:16 AM
Problem In refreshing a page. zaeem Classic ASP Components 2 November 4th, 2003 12:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.