Click here to Skip to main content
15,898,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Treeview Selected Node Pin
ejaz_pk25-Aug-07 10:51
ejaz_pk25-Aug-07 10:51 
GeneralRe: Treeview Selected Node Pin
Dave Kreskowiak26-Aug-07 4:21
mveDave Kreskowiak26-Aug-07 4:21 
GeneralRe: Treeview Selected Node :how to implement the logic [modified] Pin
rama charan17-Dec-07 5:01
rama charan17-Dec-07 5:01 
QuestionAdding ActiveX IE plugins to WebBrowser Control Pin
Vivek Narayanan23-Aug-07 5:33
Vivek Narayanan23-Aug-07 5:33 
AnswerRe: Adding ActiveX IE plugins to WebBrowser Control Pin
Dave Kreskowiak24-Aug-07 6:08
mveDave Kreskowiak24-Aug-07 6:08 
QuestionCycling through Excel using VB 2003 to find duplicates Pin
Swisher2423-Aug-07 4:56
Swisher2423-Aug-07 4:56 
AnswerRe: Cycling through Excel using VB 2003 to find duplicates Pin
petersgyoung23-Aug-07 15:17
petersgyoung23-Aug-07 15:17 
GeneralRe: Cycling through Excel using VB 2003 to find duplicates Pin
Swisher2429-Aug-07 3:32
Swisher2429-Aug-07 3:32 
I'm connecting to the excel file but having trouble with the SQL group by statement.

I'm getting an error when the dataset is being filled by the OLEAdapter; An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in microsoft.visualbasic.dll

Below is a sample of the code:


Dim ex As String = "Provider=Microsoft.Jet.OLEDB.4.0; " & "data source=" & xlfile & ";" & "Extended Properties=Excel 8.0;"

Dim conn1 As New OleDbConnection(ex)
Dim dtset1 = New DataSet
Dim col1 As String = "sc_typname" '<-----Column to group by

Dim MyCommand1 As New OleDbDataAdapter("select * from [flnme$] Group By col1", conn1)

MyCommand1.Fill(dtset1)
DataGrid1.DataSource = dtset1.Tables(0)
conn1.Close()

Am I missing any information or how can resolve this error?

Swish
GeneralRe: Cycling through Excel using VB 2003 to find duplicates Pin
petersgyoung30-Aug-07 3:07
petersgyoung30-Aug-07 3:07 
GeneralRe: Cycling through Excel using VB 2003 to find duplicates Pin
Swisher2430-Aug-07 3:53
Swisher2430-Aug-07 3:53 
GeneralRe: Cycling through Excel using VB 2003 to find duplicates Pin
petersgyoung30-Aug-07 14:50
petersgyoung30-Aug-07 14:50 
Questionenhanced activex grid - cant resize Pin
spicy_kid200023-Aug-07 4:54
spicy_kid200023-Aug-07 4:54 
QuestionScrollbar Pin
HelpMePlease!23-Aug-07 4:43
HelpMePlease!23-Aug-07 4:43 
AnswerRe: Scrollbar Pin
V.Sen...24-Aug-07 0:25
V.Sen...24-Aug-07 0:25 
Questionneed a worked sample for GdipRecordMetafile Pin
mehdi001623-Aug-07 4:24
mehdi001623-Aug-07 4:24 
AnswerRe: help me Pin
mehdi001624-Aug-07 11:48
mehdi001624-Aug-07 11:48 
QuestionInfopath 2003 Pin
lavanya_satheesh23-Aug-07 2:23
lavanya_satheesh23-Aug-07 2:23 
QuestionPointers to buttons Pin
Daniel Kanev23-Aug-07 2:10
Daniel Kanev23-Aug-07 2:10 
AnswerRe: Pointers to buttons Pin
Colin Angus Mackay23-Aug-07 2:34
Colin Angus Mackay23-Aug-07 2:34 
QuestionLogin Security Pin
EvanSaunders23-Aug-07 1:45
EvanSaunders23-Aug-07 1:45 
AnswerRe: Login Security Pin
Mark Churchill23-Aug-07 1:55
Mark Churchill23-Aug-07 1:55 
AnswerRe: Login Security Pin
Craster23-Aug-07 1:57
Craster23-Aug-07 1:57 
AnswerRe: Login Security Pin
Colin Angus Mackay23-Aug-07 2:36
Colin Angus Mackay23-Aug-07 2:36 
Questionmy application taking to much time to get the job done Pin
eyes200723-Aug-07 1:21
eyes200723-Aug-07 1:21 
AnswerRe: my application taking to much time to get the job done Pin
Dave Kreskowiak23-Aug-07 4:02
mveDave Kreskowiak23-Aug-07 4:02 

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.