Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 7th, 2005, 04:06 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
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....
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:22 AM.


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