| | |
VB.Net 2008 errors with ADO Data control and Data Grid
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Apr 2008
Posts: 1
Reputation:
Solved Threads: 0
I have a form in VB.Net (2008) that includes a Data Grid (DataGrid1) and an ADO Data Control 6.0 (ADODC1), which were inherited from VB6 in a VB6 to VB.Net upgrade. The application in VB6 ran perfectly; and my VB.Net version also runs perfectly, but not without first generating some errors.
When I attempt, at design time, to bind my Data Grid to the Data Control, I get the error: "Command Text was not set for the command Object". I also get the same error when I execute the line of code below, which is found in the file <formname>.designer.vb. I have also been getting the error "Data Source name not found and no default driver specified", although I can't, at the moment, get that error to repeat itself, so I can't tell you, exactly, what conditions precipitate that error message.
Your help in helping me figure this out is greatly appreciated. Thanks, ~Peter Ferber
When I attempt, at design time, to bind my Data Grid to the Data Control, I get the error: "Command Text was not set for the command Object". I also get the same error when I execute the line of code below, which is found in the file <formname>.designer.vb. I have also been getting the error "Data Source name not found and no default driver specified", although I can't, at the moment, get that error to repeat itself, so I can't tell you, exactly, what conditions precipitate that error message.
Your help in helping me figure this out is greatly appreciated. Thanks, ~Peter Ferber
VB.NET Syntax (Toggle Plain Text)
Public Sub VB6_AddADODataBinding() On Error GoTo Err DataGrid1.DataSource = CType(Adodc1, msdatasrc.DataSource) Sub_Exit: Exit Sub Err: Select Case Err.Number Case Else Call MyUniversalClass.PrintError(Err, "VB6_AddADODataBinding") Resume Sub_Exit Resume End Select End Sub
Last edited by Peter Ferber; Apr 25th, 2008 at 3:55 pm.
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: VB.NET Network Programming
- Next Thread: exe file
| Thread Tools | Search this Thread |
"crystal .net .net2005 .net2008 30minutes 2005 2008 access account arithmetic array basic browser button buttons center check code component connectionstring crystalreport cuesent data database databasesearch datagrid datagridview date datetimepicker design dissertation dissertations dissertationthesis dissertationtopic dropdownlist excel fade file-dialog filter folder ftp generatetags hardcopy image images input insert intel monitor navigate net networking output panel passingparameters peertopeervideostreaming picturebox picturebox1 port printing problem problemwithinstallation project reports" savedialog searchvb.net select settings shutdown string survey tcp temperature text textbox timer timespan toolbox transparency trim updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year





