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!

Help me make this query Excel friendly 1

Status
Not open for further replies.

mkallover

Programmer
Feb 6, 2008
88
US
I'm trying to link Excel to several queries I have created in Access. Unfortunately Excel does not like a WorkingDays function that I created within an Access module so it won't import that query. Is there a way to do this query that will be more Excel friendly?

Code:
TRANSFORM Count(R.request_id) AS [Count]
SELECT R.request_subject_name
FROM qryCPOFirstResponse AS R
WHERE WorkingDays([prcs_add_tmsp],[Response]) < 1
GROUP BY R.request_subject_name
PIVOT Format(prcs_add_tmsp,"yyyy/mm");
 


Hi,

How are the WorkingDays function arguments defined?

What is the LOGIC that this function applys?

Give an example of VALUES of arguments given and the expected result.

Plase answer each of these questions fully.

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


Please post the code for this UDF, from your VBA module.

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



In your query from Excel, just return the dates you want to use for Start and End. Paste the function code into a Module in Excel VBA and use it on the sheet in an adjacent cell to your query results. The Data > Import Extrernal Data > Data Range Properties window has a CHECKBOX that will propogate your formula thru ALL ROWS of your returned data.

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