syntax error (missing operator) 3075

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steve proctor
    New Member
    • Dec 2010
    • 7

    syntax error (missing operator) 3075

    hi
    am i trying to up date the table book from tblTransfer2
    and i am getting the above error but no clues as to what the missing operator could be, it works in access query in an update query but doesn't seem to like vb? any clues?

    sql = "SELECT book INNER JOIN tblTransfer2 ON book.SeatID = tblTransfer2.Se atID"

    Set recset = dbAbbeytheatre. OpenRecordset(s ql)

    recset.Edit
    Do While seatid = seatid
    recset!book = True
    recset!bookdate = bookdate
    recset!bookedby = bookedby
    recset.update
    recset.MoveNext
    Loop
    steve
  • MikeTheBike
    Recognized Expert Contributor
    • Jun 2007
    • 640

    #2
    Hi
    Perhapse this may get you a little further

    sql = "SELECT book.* FROM book INNER JOIN tblTransfer2 ON book.SeatID = tblTransfer2.Se atID"

    I don't use DAO recordset, but from memeory I think you need to us the recset.Edit method befor you can edit/update!?

    HTH


    MTB

    Comment

    • steve proctor
      New Member
      • Dec 2010
      • 7

      #3
      thanks HTH or is it MTB???
      it certainly moved it on to the next bit the "recset.edi t"
      now it seems to have a when it gets to"recset!bookd ate" problem with date type conversion error 3421, its showing recset!bookdate (null) and the bookdate (""),i presume it's not seeing whats in tbltransfer2 which i can't understand because both tables have the same data type (date/time ,number)

      Comment

      Working...