如何使用 ms access 和 delphi 7 从编辑框中显示特定日期的记录

How to display records with certain date from an editbox using ms access and delphi 7

我在 MS Access 中有一个 table,名称为 MembersAccount,字段名称之一为 DatePaid。我试图显示从在编辑框中输入的日期开始的记录,但输出根本不显示任何记录。这是我正在使用的代码。

if ADOQuery1.Locate('datepaid',edit1.Text,[]) THEN
    begin
    open;
    SQL.Clear;
    qry:= 'Select * from MembersAccount WHERE((MembersAccount.[DatePaid])='+edit1.Text+')';
    SQL.Add(qry);
    Active:= True;

我哪里弄错了密码?在编辑框中输入的日期采用 dd/mm/yyyy 格式

使用如下部分(非完整代码):

editStr := edit.Text;
myDate := StrToDate(editStr);
sqlDate := FormatDateTime('yyyy/mm/dd', myDate);

qry:= 'Select * from MembersAccount WHERE((MembersAccount.[DatePaid]) = #' + sqlDate + '#)';