SQL.Text:='Select BookNo,BookName,Author,Press,BorrowState form  Book where BookName=:Name And Press=:Press And Author=:Author';
ParamByName('Name').AsString:=NameEdit.Text;
ParamByName('Author').AsString:=AuthorEdit.Text;
ParamByName('Press').AsString:=PressEdit.Text;
错误如下:
Project Project.exe raised exception class EDBEngineError with message
'General SQL error.[Microsoft][ODBC Microsoft Access Driver]语法错误(操作符丢失)在查询表达式'BorrowState form Book where BookName=Pa_RaM000 And
Press=Pa_RaM001 And Author=Pa_RaM002'中。'.Process stopped.....大虾说说看
什么理由!

解决方案 »

  1.   

    form//  Book where //
    from//
    form and from;hehe;
      

  2.   

    ?修改过后还是出错啊!?
    SQL.Text:='Select BookNo,BookName,Author,Press,BorrowState form  Book where BookName=:Name And Press=:Press And Author=:Author';
    ParamByName('Name').AsString:=NameEdit.Text;
    ParamByName('Author').AsString:=AuthorEdit.Text;
    ParamByName('Press').AsString:=PressEdit.Text;
    错误如下:Project Project.exe raised exception class EDBEngineError with message
    'General SQL error.[Microsoft][ODBC Microsoft Access Driver]参数不足,期待是四。'Process stopped.....各位拜托了~
      

  3.   

    form?????修改过后还是出错啊!?
    SQL.Text:='Select BookNo,BookName,Author,Press,BorrowState form  Book wh
      

  4.   


    有没有搞错?form  Book  ?
    应该是:    from  Book
      

  5.   

    ParamByName('Name').AsString:=NameEdit.Text;
    ParamByName('Author').AsString:=AuthorEdit.Text;
    ParamByName('Press').AsString:=PressEdit.Text;
    AsString改为Value试试.
      

  6.   

    就是form 出错了.
    改为 From .
      

  7.   

    ParamByName('Name').value:=NameEdit.Text;
    ParamByName('Author').value:=AuthorEdit.Text;
    ParamByName('Press').valu:=PressEdit.Textplease have a try