Click here to Skip to main content
15,896,484 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralAutomate excel help Pin
Member 44350513-Apr-08 19:12
Member 44350513-Apr-08 19:12 
GeneralRe: Automate excel help Pin
Dave Kreskowiak4-Apr-08 4:32
mveDave Kreskowiak4-Apr-08 4:32 
GeneralRe: Automate excel help Pin
Member 44350514-Apr-08 9:39
Member 44350514-Apr-08 9:39 
GeneralRe: Automate excel help Pin
Member 44350514-Apr-08 11:29
Member 44350514-Apr-08 11:29 
GeneralEnable read only column as editable when it is a new row Pin
Member 39363563-Apr-08 19:01
Member 39363563-Apr-08 19:01 
GeneralRe: Enable read only column as editable when it is a new row Pin
Dave Kreskowiak4-Apr-08 4:26
mveDave Kreskowiak4-Apr-08 4:26 
QuestionImport Excel sheet into access database using vb.net Pin
Member 39363563-Apr-08 18:51
Member 39363563-Apr-08 18:51 
GeneralRe: Import Excel sheet into access database using vb.net Pin
Dave Kreskowiak4-Apr-08 4:23
mveDave Kreskowiak4-Apr-08 4:23 
Member 3936356 wrote:
_command.CommandText = "SELECT * INTO [MS Access;Database=somefile.mdb].[accesstbname] FROM [Sheet1$]"


In order to do what you want, you have to retrieve the data from the Excel sheet into a DataTable, iterate over the rows in the DataTable, verify that the row's ID is NOT already in the database, then execute an INSERT query to add the new row to the table if it' doesn't already exist.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Import Excel sheet into access database using vb.net Pin
Member 39363564-Apr-08 17:04
Member 39363564-Apr-08 17:04 
GeneralPerformance Question Pin
programmervb.netc++3-Apr-08 15:37
programmervb.netc++3-Apr-08 15:37 
GeneralRe: Performance Question Pin
kaddim3-Apr-08 16:21
kaddim3-Apr-08 16:21 
GeneralRe: Performance Question Pin
programmervb.netc++3-Apr-08 19:54
programmervb.netc++3-Apr-08 19:54 
GeneralRe: Performance Question Pin
darkelv3-Apr-08 20:38
darkelv3-Apr-08 20:38 
QuestionAuto select item in listbox when someone types in textbox Pin
Member 19022153-Apr-08 5:50
Member 19022153-Apr-08 5:50 
GeneralRe: Auto select item in listbox when someone types in textbox Pin
jzonthemtn3-Apr-08 14:59
jzonthemtn3-Apr-08 14:59 
GeneralRe: Auto select item in listbox when someone types in textbox Pin
Member 19022155-Apr-08 10:57
Member 19022155-Apr-08 10:57 
GeneralDelete row from Datagirdview Pin
yetrus3-Apr-08 4:52
yetrus3-Apr-08 4:52 
GeneralRe: Delete row from Datagirdview Pin
ilprincipe3-Apr-08 23:13
ilprincipe3-Apr-08 23:13 
GeneralRe: Delete row from Datagirdview Pin
MBCDC5-Apr-08 0:21
MBCDC5-Apr-08 0:21 
QuestionHow to prevent multiple user login using one account in VB Pin
kingascona3-Apr-08 4:45
professionalkingascona3-Apr-08 4:45 
GeneralRe: How to prevent multiple user login using one account in VB Pin
Dave Kreskowiak3-Apr-08 5:30
mveDave Kreskowiak3-Apr-08 5:30 
QuestionCan we search column in MS access (or in Excel) table with the header which contains spaces? [modified] Pin
ATC3-Apr-08 4:07
ATC3-Apr-08 4:07 
AnswerRe: Can we search column in MS access (or in Excel) table with the header which contains spaces? Pin
Dave Kreskowiak3-Apr-08 5:25
mveDave Kreskowiak3-Apr-08 5:25 
GeneralRe: Can we search column in MS access (or in Excel) table with the header which contains spaces? Pin
ATC3-Apr-08 8:14
ATC3-Apr-08 8:14 
Generalretrieving data from database into a combo box on VB form!!! Pin
jayalom3-Apr-08 3:50
jayalom3-Apr-08 3:50 

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.