Q&A

  • 파라미터를 못찾내여

query1.sql.add('select * from "visite.db"');
         query1.sql.add('where (방문객성함) like''%' + Edit1.Text+'%');
         query1.SQL.Add(' and (날짜 >= :DateTimeTostr(date1)) and (날짜 <= :DateTimeTostr(date2)) ');
query1.ParamByName('date1').AsDateTime :=DateTimePicker1.datetime                  
query1.ParamByName('date2').AsDateTime :=DateTimePicker2.datetime;
         query1.open;
이렇게 되어있는뎅...
아무리 보아도 잘못된것이 없는것 같은데
계속 파라미터 date1을 못찾네여...
왜구럴까여.....ㅜ.ㅜ
1  COMMENTS
  • Profile
    srookie 2004.08.31 02:18
    안녕하세요.
    소스를 보니 파라미터를 잘못 지정하셨네요.
    query1.SQL.Add(' and (날짜 >= DateTimeTostr(:date1)) and (날짜 <= DateTimeTostr(:date2)) ');
    이렇게 바꾸시면 될겁니다.
    그럼 즐프하세요.