Click here to Skip to main content
15,927,744 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: WinXP strange character conversion Pin
Anonymous19-Apr-05 10:55
Anonymous19-Apr-05 10:55 
GeneralUpdate: WinXP strange character conversion Pin
John Shaw19-Apr-05 11:31
John Shaw19-Apr-05 11:31 
GeneralAgain about MSN messenger Pin
usmanmir19-Apr-05 9:07
usmanmir19-Apr-05 9:07 
GeneralRe: Again about MSN messenger Pin
thrakazog19-Apr-05 10:33
thrakazog19-Apr-05 10:33 
GeneralRe: Again about MSN messenger Pin
Dave Kreskowiak19-Apr-05 15:10
mveDave Kreskowiak19-Apr-05 15:10 
Generaldelete a whole table Pin
HRusaw19-Apr-05 8:20
HRusaw19-Apr-05 8:20 
GeneralRe: delete a whole table Pin
Chris Meech19-Apr-05 8:53
Chris Meech19-Apr-05 8:53 
GeneralRe: delete a whole table Pin
HRusaw19-Apr-05 9:29
HRusaw19-Apr-05 9:29 
Dim DS As New DataSet
Dim query as string = "SELECT * from DAP"
Dim OLEConn = New OleDb.OleDbConnection("connection string goes here")
Dim adapter As New OleDb.OleDbDataAdapter
adapter.SelectCommand = New OleDb.OleDbCommand(query, OLEConn)
adapter.Fill(DS)

THIS IS THE POINT OF TROUBLE...

???? DS.Tables().Clear() ???? 'not this
???? DS.Tables().Remove() ???? 'not this

I want to delete the table "DAP" and I know the code above is not the correct way to just connect to a database, select a table, then delete the table. Does anyone have a snipet of code that 1. connect to a db. 2. selects a table. 3. deletes the selected table?

Thanks.Smile | :)




GeneralRe: delete a whole table Pin
Scott Serl19-Apr-05 10:05
Scott Serl19-Apr-05 10:05 
GeneralRe: delete a whole table Pin
HRusaw20-Apr-05 3:04
HRusaw20-Apr-05 3:04 
GeneralRe: delete a whole table Pin
rhenerlau19-Apr-05 16:09
rhenerlau19-Apr-05 16:09 
GeneralRe: delete a whole table Pin
sumit2119-Apr-05 20:39
sumit2119-Apr-05 20:39 
GeneralRe: delete a whole table Pin
HRusaw20-Apr-05 3:05
HRusaw20-Apr-05 3:05 
GeneralRe: delete a whole table Pin
HRusaw20-Apr-05 3:00
HRusaw20-Apr-05 3:00 
GeneralInherited form Enable/Disable problem. Pin
thrakazog19-Apr-05 7:04
thrakazog19-Apr-05 7:04 
Generalabout msn messenger Pin
usmanmir19-Apr-05 6:46
usmanmir19-Apr-05 6:46 
GeneralRe: about msn messenger Pin
Dave Kreskowiak19-Apr-05 7:24
mveDave Kreskowiak19-Apr-05 7:24 
GeneralRe: about msn messenger Pin
thrakazog19-Apr-05 10:31
thrakazog19-Apr-05 10:31 
GeneralRe: about msn messenger Pin
Dave Kreskowiak19-Apr-05 15:06
mveDave Kreskowiak19-Apr-05 15:06 
Generalrunning a process automatically Pin
usmanmir19-Apr-05 6:40
usmanmir19-Apr-05 6:40 
GeneralRe: running a process automatically Pin
carlos_rocha19-Apr-05 6:45
carlos_rocha19-Apr-05 6:45 
GeneralRe: running a process automatically Pin
Dave Kreskowiak19-Apr-05 7:21
mveDave Kreskowiak19-Apr-05 7:21 
GeneralShow table resulting in vb6 form Pin
husman19-Apr-05 2:53
husman19-Apr-05 2:53 
Generalpass parameters to cpp exe from Visual Basic Pin
SHYAMALA LOKRE18-Apr-05 21:55
sussSHYAMALA LOKRE18-Apr-05 21:55 
GeneralRe: pass parameters to cpp exe from Visual Basic Pin
Dave Kreskowiak19-Apr-05 2:25
mveDave Kreskowiak19-Apr-05 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.