473,320 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

BC30451: Name 'MyDataList' is not declared.

WUT
BC30451: Name 'MyDataList' is not declared.

Source Error:

Line 9: dim ds as DataSet = new DataSet()
Line 10: objCmd.Fill(ds, "OIL_H")
Line 11: MyDataList.DataSource = ds.Tables("OIL_H").DefaultView
Line 12: MyDataList.DataBind()
Line 13: end sub
Nov 19 '05 #1
1 1410
You're not showing it here so I have to ask. Where are you creating your
instance of MyDataList ?
I assume the exception is being thrown at line 11, where you're referencing
the MyDataList object.

Dave
"WUT" <WU*@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
BC30451: Name 'MyDataList' is not declared.

Source Error:

Line 9: dim ds as DataSet = new DataSet()
Line 10: objCmd.Fill(ds, "OIL_H")
Line 11: MyDataList.DataSource = ds.Tables("OIL_H").DefaultView
Line 12: MyDataList.DataBind()
Line 13: end sub

Nov 19 '05 #2

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

Similar topics

0
by: DC Gringo | last post by:
I'm getting a "BC30451: Name 'CRListType' is not declared." error Here's the top of the page where I'm getting stuck... <%@ Control Language="vb" AutoEventWireup="false"...
3
by: selena | last post by:
I have created 2 ASP pages that gives users the option of switching back and forth between French and English. They click on the word English and it converted the text to English and the French...
1
by: Matt Tapia | last post by:
I trying to compile a .vb file as such: vbc /t:library /out:C:\Inetpub\wwwroot\crm\bin\CRMWebServices.dll /r:System.dll /r:System.Data.Dll /r:System.Web.Services.dll /r:System.Xml.dll...
1
by: AbraAbraCadabra | last post by:
Help. I get this error " BC30451: Name 'objCDO' is not declared" and it references the following line... objCDO = Server.CreateObject("CDO.Message") What do I need to do to solve this error...
1
by: SinCity | last post by:
I get this error message: BC30451: Name '__w' is not declared And here is my code... script language="javascript"> document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>';...
3
by: SinCity | last post by:
I am getting the error "BC30451: Name '__w' is not declared". How can I fix this? Here is my code... <script language="javascript">...
0
by: David | last post by:
Hi, I use a public shared sub into a class for performing an insert into a table of the database. I get following error: BC30451: Name 'consql' is not declared at line: consql.insert_rec(ddl1)...
4
by: Don Quijote de Nicaragua | last post by:
Hi, I have a problem trying to load a page, sends me the following error message: Error Message: BC30451: Name 'Utilities' is not declared. Line 50: </ DIV> Line 51: <div id="side"> Line 52:...
0
by: Don Quijote de Nicaragua | last post by:
Hi EveryOne, follow these steps and always sends the wrong message error. "BC30451: Name 'Ctest' is not declared." 1- Create the Class Imports Microsoft.VisualBasic Namespace...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.