Re: Do not get data!!!!!

From: John Leavey (johnl_at_[no_spam)
Date: 06/09/04


Date: 9 Jun 2004 07:14:34 -0700

Peet Koekemoer wrote:

> Hi all,
>
> It's me again. Well I have the following problem. I'm trying to
> extract data from the db and load it into a Grid but I get no
> records. But I know there are three records for the date selected. I
> do get the records when I do a normal select in Query Analyzer.
>
> I'm using D5, TADOQuery and MSSQL2000
>
> This is my Procedure to get the data.
>
> With DataModuleForm.ADOQuery do
> begin
> SQL.Clear;
> SQL.Add('Select * from SundayLabour where WorkDate = :WorkDate');
> Paramaters.ParamByName('WorkDate').Value := WorkDate.Date

     SQL.Text := 'Select * from SundayLabour ' +
           'where DateDiff( D, WorkDate, ' +
           QuotedStr( FormatDateTime( 'd mmm yyyy', WorkDate.Date ) ) +
           ' ) = 0';

John Leavey



Relevant Pages

  • Access Insert failing, but no error message
    ... I am using Access to extract data from a SQL Server table ... and load it into Teradata. ... rows load and there is no Error message. ...
    (microsoft.public.access.externaldata)
  • Do not get data!!!!!
    ... I'm trying to extract data ... from the db and load it into a Grid but I get no records. ... Peet ...
    (borland.public.delphi.database.ado)