PC Review


Reply
Thread Tools Rate Thread

Importing data from Excel(2000) file/sheet into an Access(2000) ta

 
 
=?Utf-8?B?VG95Rml4ZXI=?=
Guest
Posts: n/a
 
      26th Jun 2007
I am new to developing office solutions and developing my first solution with
Excel and Access 2000 and VBA. I need to capture data from existion Excel
files and write them in Access data table. Can someone show me how to do this?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmVnaW5uZXI=?=
Guest
Posts: n/a
 
      26th Jun 2007
I'm also quite new to developing and coding vba in access, but I know that
you can for example use transferspreadsheet. I use it myself, but I am only
importing data from one sheet from an excel file.

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "YourTable",
"C:\...", True

The last true means that I use the first row in excel as my column names in
access, if you don't need to do that you can change it.

"ToyFixer" wrote:

> I am new to developing office solutions and developing my first solution with
> Excel and Access 2000 and VBA. I need to capture data from existion Excel
> files and write them in Access data table. Can someone show me how to do this?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG95Rml4ZXI=?=
Guest
Posts: n/a
 
      26th Jun 2007
Thank you. Really appreciate the lead you gave me.

Do you know a way of referring to individual cells without transferring the
total sheet? I have been trying to locate it in MSDN, however, still not
successful. If you could direct me to the subject area in MSDN it would be a
great help.

Thank you again

"Beginner" wrote:

> I'm also quite new to developing and coding vba in access, but I know that
> you can for example use transferspreadsheet. I use it myself, but I am only
> importing data from one sheet from an excel file.
>
> DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "YourTable",
> "C:\...", True
>
> The last true means that I use the first row in excel as my column names in
> access, if you don't need to do that you can change it.
>
> "ToyFixer" wrote:
>
> > I am new to developing office solutions and developing my first solution with
> > Excel and Access 2000 and VBA. I need to capture data from existion Excel
> > files and write them in Access data table. Can someone show me how to do this?

 
Reply With Quote
 
=?Utf-8?B?QmVnaW5uZXI=?=
Guest
Posts: n/a
 
      26th Jun 2007
I hope that I could help you more, but I've never imported individual cells
(or a range of cells).
I found this link that explains transferspreadsheet, and if I understand it
correctly, you can define a range that it imports. But how to define the
sheet from which it imports.. I don't know

http://msdn2.microsoft.com/en-us/library/bb214134.aspx

I hope that someone else can help you out

"ToyFixer" wrote:

> Thank you. Really appreciate the lead you gave me.
>
> Do you know a way of referring to individual cells without transferring the
> total sheet? I have been trying to locate it in MSDN, however, still not
> successful. If you could direct me to the subject area in MSDN it would be a
> great help.
>
> Thank you again


 
Reply With Quote
 
=?Utf-8?B?VG95Rml4ZXI=?=
Guest
Posts: n/a
 
      26th Jun 2007
I wrote the reply before going in to MSDN.

I have already found the reference you sent me. However, I greatly
appreciate you taking all the trouble to find it out for me.
I think I can manage from here, with a little bit of manipulation in the
code.
Wish you all the best with your work.
Thank you once again

Regards
Toyfixer

"Beginner" wrote:

> I hope that I could help you more, but I've never imported individual cells
> (or a range of cells).
> I found this link that explains transferspreadsheet, and if I understand it
> correctly, you can define a range that it imports. But how to define the
> sheet from which it imports.. I don't know
>
> http://msdn2.microsoft.com/en-us/library/bb214134.aspx
>
> I hope that someone else can help you out
>
> "ToyFixer" wrote:
>
> > Thank you. Really appreciate the lead you gave me.
> >
> > Do you know a way of referring to individual cells without transferring the
> > total sheet? I have been trying to locate it in MSDN, however, still not
> > successful. If you could direct me to the subject area in MSDN it would be a
> > great help.
> >
> > Thank you again

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Importing records with Date/Time data type into an Access 2007 data table Cillacil Microsoft Access External Data 0 3rd Apr 2009 08:50 PM
Importing Data into Access 2003 - Data disappears =?Utf-8?B?QWRhbTExMTE=?= Microsoft Access External Data 1 17th Oct 2006 04:57 PM
Importing an address file (that was pasted into a Word doc) into E =?Utf-8?B?c3NhdHRlcndoaXRl?= Microsoft Excel Misc 0 11th Aug 2005 11:47 PM
Missing data when importing xml data into Access 2003 RussR Microsoft Access External Data 3 29th Jul 2005 07:12 PM
Importing Data From a Webservice Data set into the database Kifaro Microsoft C# .NET 1 13th May 2004 11:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:27 PM.