select all records under mm/yyyy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aziz sonnari
    New Member
    • Dec 2013
    • 2

    select all records under mm/yyyy

    Hi I want to select all records under mm/yyyy from access table
    this may code show 0 records where 1200 records
    the filed = shorte date
    Code:
    mmonth =format( rs!EffDate,"mm/yyyy")="10/2014"
    rs.close
    rs.open"select * from Shedual where EffDate=#" & mmonth & "#"
    Talroc=rs.recordCount=0
    thank you
    Last edited by Rabbit; Feb 6 '15, 06:04 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You didn't format the EffDate in your query to the same format as the string you're searching for.

    Comment

    Working...