Hi
I am trying to get Data from ODBC into a Datagrid.
This is the very simple code i am using:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim odbcConn As New
Data.Odbc.OdbcConnection("DSN=Muschi;DBQ=X:\SBDATEN;SERVER=NotTheServer")
'odbcConn.ConnectionString = "DRIVER={Superbase 32-bit Driver
(*.sbf)};DBQ=X:\SBDATEN;SERVER=NotTheServer"
'odbcConn.Open()
Dim DataAdapter As New Data.Odbc.OdbcDataAdapter("Select * from SMSVERS",
odbcConn)
Dim ds As New DataSet
DataAdapter.Fill(ds)
DataGrid1.DataSource = ds
End Sub
When the command DataAdapter.Fill(ds) is executed the following exeption is
throwm:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred
in system.data.dll
Additional information: Specified argument was out of the range of valid
values.
When I import to access with the same connection i do not have any
problems...
Do I make something wrong?
Thanks for every help!
Nijazi Halimaji