Re: Pb while closing ADO query



Do you have the updates for ADO and MDAC installed on your system?

HTH,

Michael

"Bala" <bkarat@xxxxxxxx> wrote in message
news:4361f7f5@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi !
>
> We are using Delphi 5.0 with SQL Server. Using ADO Connection Command for
> accessing database, TADO query and TADO Dataset component for accessing
> Table data.
>
>
>
> We are facing the following problem, when ADO Query or ADO Dataset record
> is
> blank (ie Record Count = 0) and try to Close or set Active = False, it
> shows
> the error:
>
>
>
> " Either BOF or EOF is True, or the current record has been deleted.
> Requested operation requires a current record "
>
>
>
> Coding is as below:
>
>
>
> qryDisplay.Active := False; //This statement returns Error Message when
> executed for
>
> //second time
>
> qryDisplay.SQL.Clear;
>
> qryDisplay.SQL.Text := 'Select * From TempCustomers';
>
> qryDisplay.Active := True;
>
> if qryDisplay.RecordCount > 0 Then
>
> Begin
>
> while qryDisplay.RecNo <= 5 do
>
> begin
>
> ShowMessage(qryDisplay.FieldValues['CustName']);
>
> qryDisplay.Next;
>
> end;
>
> End;
>
>
>
> Someone pl help
>
>
>
> Regards,
>
> Bala
>
>


.



Relevant Pages

  • Pb while closing ADO query
    ... accessing database, TADO query and TADO Dataset component for accessing ... We are facing the following problem, when ADO Query or ADO Dataset record is ...
    (borland.public.delphi.database.ado)
  • Re: How to Mimic Access Externally Linked Tables using ADO?
    ... > using SQL Server for efficiency reasons. ... > connection up programmatically using ADO or ADOX or some SQL Server API? ... >> newsgroup, but if you have a good reason to send me e-mail, you'll find ... ADO does not have a query engine. ...
    (microsoft.public.data.ado)
  • Re: How to access the SQL server express from mfc application?
    ... There are different ways to do this via MFC. ... You could certainly try ADO, ... the entire contents of the database to a SQL Server Standard Server. ...
    (microsoft.public.vc.mfc)
  • Re: DAO vs ADO
    ... and ADO when working with SQL Server data. ... which makes DAO a good choice. ... > add additional overhead by loading Jet, ...
    (microsoft.public.access.conversion)
  • Re: DAO vs ADO
    ... and ADO when working with SQL Server data. ... which makes DAO a good choice. ... > add additional overhead by loading Jet, ...
    (microsoft.public.access.adp.sqlserver)