Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 2007 - Importing Access Data

Status
Not open for further replies.

mkallover

Programmer
Feb 6, 2008
88
US
I'm trying to import an Access query into Excel but unfortunately Excel does not support a WorkingDays function that I created with a Module in Access. Is there any way to finagle this and get around it?
 



Hi,

Check out the WORKDAY function.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
That doesn't really help me. I'm trying to import a query from Access that uses a WorkingDays function. The Excel WORKDAY function doesn't help if I can't get the data into Excel.
 


WorkingDays must be a user defined function in that particular Access database. To the best of my knowledge, there is no WorkingDays built-in function in Access.

Access does have a Weekday function that returns 0 - 7, as does Excel.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 


There was not reason to post over in the MS Access forum.

As I explained in your other thread, put the User Defined WorkingDays function in a module in your Excel workbook.

Import the Start and End date fields in your query.

In the column adjacent to your query results, use the WorkingDays function as you would any other woeksheet function.

In the Data Range Properties for the query table, check the ONLY BOX, at the bottom, to Fill down formulas in columns adjacent to data

Ease Peasy! I use this technique every day.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 


alt+D D A

if you can't find it in 2007.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top