Click here to Skip to main content
15,914,109 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Disable form not fast enough Pin
DaveAuld23-May-10 3:35
professionalDaveAuld23-May-10 3:35 
GeneralRe: Disable form not fast enough Pin
Didier Cauberghe23-May-10 3:42
Didier Cauberghe23-May-10 3:42 
QuestionWindows Service Functionality Pin
VikashGohil22-May-10 20:07
VikashGohil22-May-10 20:07 
AnswerRe: Windows Service Functionality Pin
DaveAuld22-May-10 23:46
professionalDaveAuld22-May-10 23:46 
GeneralRe: Windows Service Functionality Pin
VikashGohil23-May-10 20:26
VikashGohil23-May-10 20:26 
QuestionBest data structure in VB .NET 4.0 ?! Pin
Agarwaen5922-May-10 8:03
Agarwaen5922-May-10 8:03 
AnswerRe: Best data structure in VB .NET 4.0 ?! Pin
Luc Pattyn22-May-10 8:42
sitebuilderLuc Pattyn22-May-10 8:42 
QuestionCopy Excel Data into Access Database Table. Pin
jeshra27922-May-10 3:52
jeshra27922-May-10 3:52 
Hi All,
I have one Excel sheet "Student.xls", which has different worksheet as "Sheet1","Sheet2"..like that.
Consider now "Sheet1"; it has 3 columns - "Name", "Age", "Sex". All these columns has row entries.

Now I have one access database, "alldata.mdb". It has One table "Record" which has 3 fields as same as column name of Excel sheet-- "Name", "Age", "Sex".

I want to populate this access database with the entries of Excel sheet from "Sheet1".

Can someone let me know how to do this?

I tried this:

// first connected xl datasheet:

Dim filename As String = "C:\Student.xls"
Dim con As String

con = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & filename & ";" & "Extended Properties=Excel 8.0;"
Dim connection As OleDbConnection = New OleDbConnection(con)
connection.Open()


The above Excel connection was succesful, but how to import the data from this excel sheet into the access database.

Please suggest.

Thanks,
R.S.
AnswerRe: Copy Excel Data into Access Database Table. Pin
DaveAuld22-May-10 4:02
professionalDaveAuld22-May-10 4:02 
GeneralRe: Copy Excel Data into Access Database Table. Pin
Dalek Dave22-May-10 4:17
professionalDalek Dave22-May-10 4:17 
GeneralRe: Copy Excel Data into Access Database Table. Pin
jeshra27922-May-10 4:51
jeshra27922-May-10 4:51 
GeneralRe: Copy Excel Data into Access Database Table. Pin
DaveAuld22-May-10 5:02
professionalDaveAuld22-May-10 5:02 
GeneralRe: Copy Excel Data into Access Database Table. Pin
jeshra27922-May-10 5:40
jeshra27922-May-10 5:40 
GeneralRe: Copy Excel Data into Access Database Table. Pin
DaveAuld22-May-10 20:48
professionalDaveAuld22-May-10 20:48 
GeneralRe: Copy Excel Data into Access Database Table. Pin
jeshra27923-May-10 18:53
jeshra27923-May-10 18:53 
QuestionCompare two scanned images! Pin
FeRtoll21-May-10 8:26
FeRtoll21-May-10 8:26 
AnswerRe: Compare two scanned images! Pin
Dave Kreskowiak21-May-10 9:15
mveDave Kreskowiak21-May-10 9:15 
GeneralRe: Compare two scanned images! Pin
FeRtoll21-May-10 11:42
FeRtoll21-May-10 11:42 
GeneralRe: Compare two scanned images! Pin
FeRtoll21-May-10 13:34
FeRtoll21-May-10 13:34 
GeneralRe: Compare two scanned images! Pin
Dave Kreskowiak22-May-10 14:45
mveDave Kreskowiak22-May-10 14:45 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 0:07
FeRtoll23-May-10 0:07 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 10:33
FeRtoll23-May-10 10:33 
GeneralRe: Compare two scanned images! Pin
Dave Kreskowiak23-May-10 18:08
mveDave Kreskowiak23-May-10 18:08 
GeneralRe: Compare two scanned images! Pin
FeRtoll23-May-10 22:12
FeRtoll23-May-10 22:12 
Questioninfragistics ultrawingrid tabbing problem Pin
soterios21-May-10 3:22
soterios21-May-10 3:22 

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.