Compilation Error

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: May 2006
Posts: 32
Reputation: DATABASE is an unknown quantity at this point 
Solved Threads: 0
DATABASE DATABASE is offline Offline
Light Poster

Compilation Error

 
0
  #1
Jun 2nd, 2006
i wrote this code in the display of a page

sub Display()
dim strcon as string ="Provider=Microsoft.Jet.OLEDB.4.0;DataSource =Sales.mdb"
dim strcommand as string ="Select * from sales"
dim myconnect as oledbconnection = new oledbconnection
dim myAdaptor as oledbDataAdapter = new oledbDataAdapter
dim salesDS as DataSet = new DataSet myconnect.ConnectionString=strcon myAdaptor.SelectCommand=new oleDbComman(strcommand,myconnect) myAdaptor.selectCommand.connection.open
myAdaptor.fill(salesDS,"sales")
SalesTable.DataSource=salesDS.Tables("Sales")
SalesTable.DataBind End sub

but there is a compilation error appear ,,,
this is the error :rolleyes:

Compiler Error Message: BC30451: Name 'SalesTable' is not declared.

Source Error:

Line 19: myAdaptor.selectCommand.connection.openLine 20: myAdaptor.fill(salesDS,"sales")Line 21: SalesTable.Data Source=salesDS.Tables("Sales")Line 22: SalesTable.DataBindLine 23:
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 32
Reputation: DATABASE is an unknown quantity at this point 
Solved Threads: 0
DATABASE DATABASE is offline Offline
Light Poster

Re: Compilation Error

 
0
  #2
Jun 2nd, 2006
the problem solved:cheesy:
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC