RE: I am dead with ado rs.Find("Code Like 'E*')



Find method of the recordset will always go to EOF when a record with the
specified criteria is not found.

Check if you have Recordcount > 0 before executing the Find method.

Also, if you have used this Find method inside a loop, make sure you move
the record pointer to the first position using MoveFirst method. Because, the
record you're currently finding may be positioned before the record that was
found the last time the Find method was executed.

"Manish Sawjiani" wrote:

> Dear Experts,
>
> This works during design time without problem but after i execute compiled
> code it shows 3021 no records or current record is deleted :
> the code is as follows:
>
> rs.find "Code like 'E*' --- HERE IT BOMBS - RUNTIME ERROR
> if rs.eof or rs.bof then
> msgbox "Sorry there are no records"
> else
> fillfields
> end if
> i am on the verge of delivering to my client and there are 21 forms with
> this kind of find. i hope something comes out of this as always and i have
> never been let down by vb experts - THANKS A HEAP!
> Manish Sawjiani
>
>
> --
> Three Cheers to Technet for the Help!
.



Relevant Pages

  • Re: Oracle Stored Proc problem
    ... Maxim Demenko wrote: ... hold --- length of text which is not known at design time. ... While executing the stored procedure at runtime, ... PL SQL variables are limited to 32K (i.e. you can't assign a longer ...
    (comp.databases.oracle.server)
  • Re: Oracle Stored Proc problem
    ... hold --- length of text which is not known at design time. ... While executing the stored procedure at runtime, ... PL SQL variables are limited to 32K (i.e. you can't assign a longer ...
    (comp.databases.oracle.server)
  • Re: Oracle Stored Proc problem
    ... hold --- length of text which is not known at design time. ... While executing the stored procedure at runtime, ... PL SQL variables are limited to 32K. ...
    (comp.databases.oracle.server)

Quantcast