Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-15-2004, 10:25 AM   #1
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
extract field into Database

is there any way i can do it in a programming way.

also if there are many excel form, can i grap some field in each form and put into the database
wilbasket23 is offline   Reply With Quote
Old 03-15-2004, 10:36 AM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Yes, there is a way. How familiar are you with VBA script?

What this will entail is code that is separated into three parts: 1) grab the data from the Excel file, 2) put the data into the form you want, 3) insert the data into an Access database.

The first section will probably just involve grabbing the data from the right cells in the spreadsheet. The second section is whatever you want it to be. The third section involves using recordset objects in ADO or DAO to append the data to tables in Access.
doctorgonzo is offline   Reply With Quote
Old 03-16-2004, 10:54 AM   #3
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
can you show me some coding example. thank you
wilbasket23 is offline   Reply With Quote
Old 03-16-2004, 11:09 AM   #4
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Please don't double-post. There is no need to start a new thread on this subject.

Here is a snippet: http://dbforums.com/arch/243/2003/8/881105

You might want to check out this website: http://www.exceltip.com/

Honestly, though, without knowing what you want to do, code pieces aren't helpful. As I said before, this can be broken up into three relatively easy steps. Check Excel's VBA help system for information on accessing data in a cell or manipulating data types if you don't know how to do these things.
doctorgonzo is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:49 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2