borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (call image from sql and insert into another table)Next Topic (can not setup sql server2000) New Topic New Poll Post Reply
AndreaVB Forum : Database : Import Data from Excel to Access Solved Topic
Poster Message
chintu4u
Level: Graduate

Registered: 22-03-2006
Posts: 11

icon Import Data from Excel to Access

Hi, I want to import data from Excel sheet while it is open and not saved,is it possible..
Exactly wht I mean is I m getting data in Excel sheet(use as temp db) from other app. it is not being saved I want to read tht data and insert it into Access DB. and then delete tht Excel sheet data to get another data how to do so plz help me....  

14-05-2006 at 06:51 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: Import Data from Excel to Access

Hi,
You seem to want to IMPORT into Access from Excel, however, would it not be better to EXPORT from Excel into Access - you can use a macro for this and it doesn't require saving your data. If you import into access, you will need a way of detecting which spreadsheet, in which open copy of Excel and which cell that contains your data. Exporting means the user can click a cell in their spreadsheet and click a toolbar button (or run a macro) to dump the data into Access.

The following article is a good (if simple) example. Read through the code and substitute where applicable. For example, you will need to change the db connection, and possibly the starting cell.

Link:
http://www.exceltip.com/st/Export_data_from_Excel_to_Access_(ADO)_using_VBA_in_Microsoft_Excel/425.html
Hope this helps
Kieron


[Edited by stickleprojects on 14-05-2006 at 10:24 PM GMT]

____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

14-05-2006 at 10:23 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : Import Data from Excel to Access Solved Topic
Previous Topic (call image from sql and insert into another table)Next Topic (can not setup sql server2000) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder