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 Excel and Access linkage

I have a problem .. i have some data in excel and other data in access.
This is related to hours people work for a customer project

Soi have a ms access database with a table called ACTUALS that has data
such as this:

LASTNAME SERIAL CUSTOMER DATE HOURS
----------------- ------------ --------------------
------------------------- ---------------
JONES 123345 ACME 1/26/2007 27
JONES 123345 ACME 1/19/2007 25
SMITH 654321 ACME 1/26/2007 12
SMITH 654321 AA INC 1/19/2007 22
etc

LASTNAME, SERIAL, CUSTOMER and DATE form a unique key.

I have an excel spreadsheet with this format:

A B C D
E
1 LASTNAME SERIAL COMPANY 1/19/2007 1/26/2007
2 JONES 123345 ACME
3 SMITH 654321 ACME
4 SMITH 654321 AA INC
....
x ENDOFLIST


I'd like to populate columns D and E with the data from the excel
spreadsheet for the corresponding date in row 1 ...

I kind of wish i could enter a query in each cell that is like this:

SELECT HOURS FROM ACTUALS WHERE (LASTNAME=$An AND SERIAL=$Bn and
COMPANY=$Cn AND DATE= m$1 )

n being the row number and m being the column letter.

Is this possible? Either through an external data source or through a
VBA macro?

thanks
Glyn

 
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
Importing EXCEL Spreadsheets into ACCESS -- Macro or VBA? Excel Worksheet Functions 0 July 12th 06 10:08 PM
Importing EXCEL Spreadsheets into ACCESS -- Macro or VBA? Excel Discussion (Misc queries) 0 July 12th 06 10:08 PM
Linking Large Access Table into Excel Steven M. Britton Links and Linking in Excel 1 December 30th 05 11:28 PM
Excel aficionado wants to learn Access Hari Excel Discussion (Misc queries) 0 December 3rd 04 05:45 AM
Excel user desires to learn ABC of Access Hari Excel Discussion (Misc queries) 1 December 3rd 04 02:32 AM


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