Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Excel to Access using VBA

Hello,

We are in the process of making cycle times to see how long it takes to
complete a task. We have all of our forms in Excel, so people can choose
which tasks that want to perform. When done, they click a button on Excel and
it generates a spreadsheet for them.

We have been assigned a new task to actually grab these numbers. I am
wondering if using Excel Automation to Access is the proper way to go about
this. What I was thinking is grabbing the test number and the start date from
Excel and place these in a Access table I have created called tblExcel. By
the way, all our generation is by Excel VBA.

Any advice is greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Excel to Access using VBA


I personally think using ADO would be better than automation. You don't
need to tie up resources or control an entire Access session, you can simply
access the database via ADO and use SQL to INSERT INTO your table (or even
modify the table, make new tables, etc as needed). See the recent post "Data
from Excel Range to existing Access Table" for further info
--
- K Dales


"Eric" wrote:

Hello,

We are in the process of making cycle times to see how long it takes to
complete a task. We have all of our forms in Excel, so people can choose
which tasks that want to perform. When done, they click a button on Excel and
it generates a spreadsheet for them.

We have been assigned a new task to actually grab these numbers. I am
wondering if using Excel Automation to Access is the proper way to go about
this. What I was thinking is grabbing the test number and the start date from
Excel and place these in a Access table I have created called tblExcel. By
the way, all our generation is by Excel VBA.

Any advice is greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Excel to Access using VBA

Great! Now I want to get the maximum value, like a DMax function. Can this be
done in ADO?

"K Dales" wrote:


I personally think using ADO would be better than automation. You don't
need to tie up resources or control an entire Access session, you can simply
access the database via ADO and use SQL to INSERT INTO your table (or even
modify the table, make new tables, etc as needed). See the recent post "Data
from Excel Range to existing Access Table" for further info
--
- K Dales


"Eric" wrote:

Hello,

We are in the process of making cycle times to see how long it takes to
complete a task. We have all of our forms in Excel, so people can choose
which tasks that want to perform. When done, they click a button on Excel and
it generates a spreadsheet for them.

We have been assigned a new task to actually grab these numbers. I am
wondering if using Excel Automation to Access is the proper way to go about
this. What I was thinking is grabbing the test number and the start date from
Excel and place these in a Access table I have created called tblExcel. By
the way, all our generation is by Excel VBA.

Any advice is greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Excel to Access using VBA

Yes, SQL has equivalent functions; the syntax would be
SELECT MAX([FieldName]) FROM [TableName] WHERE {CONDITION}
e.g.:
SELECT MAX([Commission Paid]) FROM [Widget Sales] WHERE [Salesperson]='Dales'
For details there are many online references to SQL syntax; a net search
will help you find a good site. Also, check out the ADO reference at
http://msdn.microsoft.com/data/DataAccess/
(updated for .NET but most of it would still apply to VBA using ADODB
reference)
--
- K Dales


"Eric" wrote:

Great! Now I want to get the maximum value, like a DMax function. Can this be
done in ADO?

"K Dales" wrote:


I personally think using ADO would be better than automation. You don't
need to tie up resources or control an entire Access session, you can simply
access the database via ADO and use SQL to INSERT INTO your table (or even
modify the table, make new tables, etc as needed). See the recent post "Data
from Excel Range to existing Access Table" for further info
--
- K Dales


"Eric" wrote:

Hello,

We are in the process of making cycle times to see how long it takes to
complete a task. We have all of our forms in Excel, so people can choose
which tasks that want to perform. When done, they click a button on Excel and
it generates a spreadsheet for them.

We have been assigned a new task to actually grab these numbers. I am
wondering if using Excel Automation to Access is the proper way to go about
this. What I was thinking is grabbing the test number and the start date from
Excel and place these in a Access table I have created called tblExcel. By
the way, all our generation is by Excel VBA.

Any advice is greatly appreciated.

Reply
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
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Can Excel access data from Access?! Al Excel Discussion (Misc queries) 5 April 5th 08 03:52 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM
Access data -work in Excel- save in Access s_u_resh Excel Programming 1 October 25th 04 12:52 PM
Getting Access Error Messages when running Access through Excel Dkline[_2_] Excel Programming 0 October 12th 04 09:35 PM


All times are GMT +1. The time now is 07:28 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"