+ Reply to Thread
Results 1 to 3 of 3

VBA Code in Not Working. Please check..

Hybrid View

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    VBA Code in Not Working. Please check..

    Hi,

    please find my below code.

    Dim dateFilter
    Dim oList, S_dt, E_dt
    Set dateFilter = BugFactory.Filter
    S_dt = Me.S_Date.Value
    E_dt = Me.E_Date.Value
    dateFilter.Filter("BG_DETECTION_DATE") = ">= &S_dt And <= &E_dt"
    
    'dateFilter.Filter("BG_DETECTION_DATE") = MyDate
    Set oList = dateFilter.NewList
    when i run this part of code i am getting invalid date field value error.

    Could you please check and let me know whats the problem is?

    thanks in Advance

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,652

    Re: VBA Code in Not Working. Please check..

    Try this...

    dateFilter.Filter("BG_DETECTION_DATE") = ">=" & S_dt & "And <=" & E_dt
    Last edited by AlphaFrog; 11-27-2012 at 12:02 AM.

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: VBA Code in Not Working. Please check..

    hi
    thanks for responding
    i have tried the way u said but stilll i can see the same error message

+ 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