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:

This question has already been answered. Start a new discussion instead.