+ Reply to Thread
Results 1 to 8 of 8

Need Macro to pull data from AR System - Remedy

  1. #1
    Forum Contributor
    Join Date
    09-10-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    176

    Need Macro to pull data from AR System - Remedy

    Hi All,

    I am looking for a Macro that pull the data from Remedy and it should promt for start date & end date, I am not sure what are all the details required for this. Please let me know if I miss any of the required parameter.

    I have tried pulling the data using MS Query and was able to pull the data. In the table instead of having a standard date I have changed it to [Enter Start Date] as a parameter query and it is working in Query however I am getting an error "Driver] Parameter missing" in excel and my query is lost.

    Driver used for this is "DSN=AR System ODBC Data Source;ARServer=remedy03;UID=userid;ARAuthentication=;SERVER=NotTheServer"

    The code mentioned below works if the date is constant as mentioned below. I have attached the sample result sheet.

    Please Login or Register  to view this content.
    Thanks in advance for all your help!!

    Regadrs,
    Humac
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-10-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    176

    Re: Need Macro to pull data from AR System - Remedy

    Bump no response

  3. #3
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Need Macro to pull data from AR System - Remedy

    Can you post your SQL that includes the parameter argument?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  4. #4
    Forum Contributor
    Join Date
    09-10-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    176

    Re: Need Macro to pull data from AR System - Remedy

    Hi,

    Instead of specific date & group I have mentioned it as [Enter Start Date], [Enter End Date] & [Enter Group]. I am getting the result if I use the same in MS Query but not in exel. Hope I am using the correct syntax in SQL.

    Please Login or Register  to view this content.
    Thanks in advance for all your help!!

    Regards,
    Humac

  5. #5
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Need Macro to pull data from AR System - Remedy

    I have no experience in using SQL in Excel. I'd suggesting asking a moderator to move this thread from the Access portion of this forum to an Excel section.

    Have you verified that your parameters are pulling in correctly?
    Don't you need to surround your dates with #?
    Why are your table and field names in double quotes?

  6. #6
    Forum Contributor
    Join Date
    09-10-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    176

    Re: Need Macro to pull data from AR System - Remedy

    Thanks Dave!!

    Have you verified that your parameters are pulling in correctly?
    Yes, it is pulling correctly in MS QUERY & Excel if I give specific date & Group and its pulling data in MS Query even with [Enter Date] but when I try to refresh the same in excel its throwing an error message.

    Don't you need to surround your dates with #?
    Yes, I do surrond # for dates in MS Query and it is converting to {ts 'YYYY-MM-DD HH:MM:SS'} when I view code in SQL.

    Why are your table and field names in double quotes?
    I hope it is the syntax SQL use. I didn't use double quotes in MS Query.

    Regards,
    Humac

  7. #7
    Forum Contributor
    Join Date
    09-10-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    176

    Re: Need Macro to pull data from AR System - Remedy

    Hello Moderators,

    As suggested by Dave, please move this thread from the Access portion of this forum to an Excel section.

    Thanks in advance for your help!!

    Regards,
    Humac

  8. #8
    Forum Contributor
    Join Date
    09-10-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    176

    Re: Need Macro to pull data from AR System - Remedy

    Bump no response - I am bumping it as this thread is moved from other section.

    Sorry for the inconvinience.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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