Where clause + VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cptcanada
    New Member
    • May 2008
    • 19

    Where clause + VB

    Why does it say WHERE DATE()>date_des troyed is not a roconized function in VB?

    Thanks for the help
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by cptcanada
    Why does it say WHERE DATE()>date_des troyed is not a roconized function in VB?

    Thanks for the help
    That should be part of your SQL string. VB Should not be compiling it.

    Nevertheless the SQL date functions do not work like that. You need :

    Select CURRENT_TIMESTA MP (or CURRENT_DATE or CURRENT_TIME)

    Kind of depends on what you want to do and what kind of database server you are using (Access, MySQL, etc)

    Comment

    Working...