Results 1 to 3 of 3

Thread: MS Acces and VB.Pleeese Help

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    florida
    Posts
    18
    Hi everybody,
    I have this line of code but
    I get a syntax error (missing operator)in query expression

    Can somebody please tell me what I am doing wrong

    rs.Open "SELECT * FROM SupAct where InDate < " & Now() & ";"
    Thanx

  2. #2
    Lively Member
    Join Date
    Dec 1999
    Posts
    106
    I think dates have to be enclosed by # in Access
    i.e.

    rs.Open "SELECT * FROM SupAct where InDate < #" & Now() & "#;"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    florida
    Posts
    18

    To hayessj

    Thank you so much it works great

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width