+ Reply to Thread
Results 1 to 3 of 3

Date problem in Macro

  1. #1
    Registered User
    Join Date
    09-20-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Date problem in Macro

    Hello,

    I have this Oracle SQL query is working well in Back end. But when i use in Excel Macro i am getting run time error. Any tips.

    select TESTCYCL.TC_CYCLE_ID from TESTCYCL where TO_CHAR(Date,'2010/09/09') = TO_CHAR(TC_PLAN_Scheduling_DATE,'2010/09/20')
    Attached Images Attached Images
    Last edited by qazqaz; 09-20-2010 at 05:26 PM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Date problem in Macro

    "select TESTCYCL.TC_CYCLE_ID from TESTCYCL where TO_CHAR(Date,'2010/09/09') = TO_CHAR(TC_PLAN_Scheduling_DATE,'2010/09/20')"



  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: Date problem in Macro

    A bit of code wouldn't go amiss...
    Remember what the dormouse said
    Feed your head

+ 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