Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Mar 2003
    Location
    London, Gtr London
    Posts
    131
    Thanks
    0
    Thanked 0 Times in 0 Posts

    SQL Statement (97)

    Please could somebody help me out with this code:

    What am I doing wrong?

    Set rst = dbs.OpenRecordset("SELECT tblPOPHistory.ORDER_NO FROM tblPOPHistory, tblSystemParameters " _
    & "WHERE (((tblPOPHistory.INVOICE) = [tblSystemParameters]![PurchaseInvoice]))"

    Many thanks
    Hayden

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: SQL Statement (97)

    There is no closing ) after the SQL statement after the last ".

  3. #3
    2 Star Lounger
    Join Date
    Mar 2003
    Location
    London, Gtr London
    Posts
    131
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: SQL Statement (97)

    Ahh of course!

    Thanks again Hans, it's easy when you know how

    Thanks
    Hayden

Posting Permissions

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