Click here to Skip to main content
15,915,600 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSetCursor Pin
UrbanBlues27-Dec-02 22:19
UrbanBlues27-Dec-02 22:19 
GeneralRe: SetCursor Pin
Jeremy Falcon31-Dec-02 12:07
professionalJeremy Falcon31-Dec-02 12:07 
GeneralRe: SetCursor Pin
MikeUofPhx6-Jan-03 14:58
MikeUofPhx6-Jan-03 14:58 
GeneralProject file and exe file Pin
Nick Seng27-Dec-02 16:37
Nick Seng27-Dec-02 16:37 
Generaldll access Pin
brieg100027-Dec-02 12:40
brieg100027-Dec-02 12:40 
GeneralRe: dll access Pin
mikasa8-Jan-03 6:40
mikasa8-Jan-03 6:40 
GeneralLoad at Start up ! Pin
dayWalker27-Dec-02 0:01
dayWalker27-Dec-02 0:01 
QuestionAdapter.Fill ? Pin
Nick Seng26-Dec-02 17:10
Nick Seng26-Dec-02 17:10 
Using VB.net

Can somebody help me? I'm using vb to connect to MySQL through ODBC using the following code

<br />
Dim Con as New ODBCConnection("some connection")<br />
Dim Adp as New ODBCDataAdapter<br />
Dim ds as New DataSet()<br />
<br />
Con.Open()<br />
Adp.SelectCommand.Connection = Con<br />
Adp.SelectCommand.CommandText = "SELECT * FROM tablename"<br />
Adp.Fill(ds,"tablename")<br />


The error occurs at the Fill with message: NO_DATA, but if I use ExecuteReader instead, there's no error and the data's there.

Is there something wrong with the code? Or is there something I should know about the Microsoft.Data.Odbc namespace? Please Help!



Notorious SMC



The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain

Get your facts first, and then you can distort them as much as you please
Mark Twain
QuestionUpgrade to Visual Studio 2003? Pin
James Williams26-Dec-02 7:24
James Williams26-Dec-02 7:24 
AnswerRe: Upgrade to Visual Studio 2003? Pin
Michael P Butler26-Dec-02 7:43
Michael P Butler26-Dec-02 7:43 
GeneralCould anybody help me in visual basic Pin
suresh_sathya25-Dec-02 23:27
suresh_sathya25-Dec-02 23:27 
QuestionHow can I bind data to Groupbox of radiobuttons Pin
intibnin24-Dec-02 22:57
intibnin24-Dec-02 22:57 
AnswerRe: How can I bind data to Groupbox of radiobuttons Pin
Tatham26-Dec-02 6:31
Tatham26-Dec-02 6:31 
GeneralRe: How can I bind data to Groupbox of radiobuttons Pin
intibnin26-Dec-02 20:45
intibnin26-Dec-02 20:45 
GeneralRe: How can I bind data to Groupbox of radiobuttons Pin
Tatham26-Dec-02 20:55
Tatham26-Dec-02 20:55 
QuestionHow Can i detect return key in datagridTextBoxColumn Pin
intibnin24-Dec-02 22:49
intibnin24-Dec-02 22:49 
AnswerRe: How Can i detect return key in datagridTextBoxColumn Pin
Tatham26-Dec-02 6:44
Tatham26-Dec-02 6:44 
GeneralRe: How Can i detect return key in datagridTextBoxColumn Pin
intibnin30-Dec-02 4:55
intibnin30-Dec-02 4:55 
GeneralRe: How Can i detect return key in datagridTextBoxColumn Pin
Tatham30-Dec-02 5:03
Tatham30-Dec-02 5:03 
Generaltoolbar_button click Pin
Anonymous24-Dec-02 10:30
Anonymous24-Dec-02 10:30 
GeneralRe: toolbar_button click Pin
Nick Seng25-Dec-02 15:48
Nick Seng25-Dec-02 15:48 
GeneralLabelArray and MenuItemArray Pin
Ilan Ehrenfeld23-Dec-02 23:34
Ilan Ehrenfeld23-Dec-02 23:34 
GeneralRe: LabelArray and MenuItemArray Pin
Nick Seng25-Dec-02 15:40
Nick Seng25-Dec-02 15:40 
GeneralLaunching executable file Pin
Desmond23-Dec-02 7:42
Desmond23-Dec-02 7:42 
GeneralRe: Launching executable file Pin
Ray Cassick23-Dec-02 9:29
Ray Cassick23-Dec-02 9:29 

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.