+ Reply to Thread
Results 1 to 2 of 2

Importing Access into Excel... Won't Work With 'WorkdaysFunction

  1. #1
    Registered User
    Join Date
    07-23-2014
    Location
    Rhode Island, USA
    MS-Off Ver
    2007
    Posts
    5

    Importing Access into Excel... Won't Work With 'WorkdaysFunction

    Hi All,
    I've tried to solve this problem for a few days (with Google and whatnot) and my friend suggested I try on here.

    I'm currently grabbing data from SharePoint and running a few queries in Access. In the queries, I run some calculations to make the data more useful. One calculation I did was:

    Please Login or Register  to view this content.
    My boss said to use business days instead of regular days. I looked around and I found a function, called Workdays, on the Microsoft Website, and it works! Now the calculation looks like:

    Please Login or Register  to view this content.
    After performing queries in Access, I import it into Excel with PivotTables and whatnot. Unfortunately, when I try to import the data with this function it does not work. I suspect it may be a local/global thing. I've tried copying the function into an Excel Module to make sure that it would work, but it still does not work.

    ~~~~~~~~~Testing~~~~~~~~~~~~

    I've tried...
    • Getting rid of the Workdays function, and it exports into Excel without a problem!
    • Copying and pasting the Workdays function into Excel VBA, and it still does not work.
    • Importing from 'Microsoft Query' instead of From 'Access', it doesn't like the Workdays function.
    • Writing blanks as 0's in the file to make sure.


    Just to make sure, I've copied and pasted my Access code here. Workdays calls on Weekdays as a function, and also a Holidays table in Access.

    Please Login or Register  to view this content.
    Last edited by willehahr; 07-23-2014 at 01:28 PM. Reason: Accidently put "DueDate" instead of "EstimateDueDate"

  2. #2
    Registered User
    Join Date
    07-23-2014
    Location
    Rhode Island, USA
    MS-Off Ver
    2007
    Posts
    5

    Re: Importing Access into Excel... Won't Work With 'WorkdaysFunction

    I found a solution:
    You cannot import that function into Excel. I instead created the functions in Excel under "Options" --> "Formulas", and created them there.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. importing a csv into access from excel via ado
    By ValGlad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2012, 08:31 PM
  2. Generating an Excel sheet and importing it into Access with VBA triggered in Access
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2012, 07:43 AM
  3. VBA - Importing from Access to Excel
    By Rerun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2012, 09:58 PM
  4. Importing data from Access to Excel, but I need to vary the table from Access
    By Liz L. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2006, 09:15 PM
  5. [SOLVED] Importing to access from excel
    By KIM in forum Excel General
    Replies: 4
    Last Post: 02-23-2005, 08:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1