LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default import specific fields only from excel to database

Hello everyone,

I want to import only few fields from the excel into the database. i m
using Microsoft access as the backend and vb as the front end.

So far i have succeeded in opening the excel and load the whole excel
data into the database.

i used the following query to load the whole data into the database
table from access.

rs.Open "Test", cn, adOpenKeyset, adLockOptimistic, adCmdTable

but i want only specific fields from the excel, for which i used

rs.Open "select TestA, TestB, TestC from [vbexl$]", cn, adOpenDynamic,
adLockOptimistic, adCmdTable

where vbexl is the excel object. Also, please let me know whether the
query is right or wrong.

please let me know any other way to import only specific fields

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add link to specific Excel worksheet in HTML Outlook message [email protected] Links and Linking in Excel 4 May 17th 23 11:47 AM
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How to import data from daily reports (excel) into excel database Import data from excel to excel Excel Discussion (Misc queries) 2 May 30th 06 04:18 PM
How can I import data from a mysql database into excel Tina Excel Discussion (Misc queries) 3 May 18th 06 04:21 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM


All times are GMT +1. The time now is 11:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"