Ayuda para encontrar mi error... con el comando buscar de neodbpro - Forum

Forum Navigation
You need to log in to create posts and topics.

Ayuda para encontrar mi error... con el comando buscar de neodbpro

Hola gente esto debe ser una tontera pero no logro poder tener el resultado.

Tengo una base de datos llamada prestamos y en la tabla extra_dolar se encuentra el registro documento

lo que intento es hacer una busqueda para localizar un documento, y si no esta que muestre un alertbox

dbpFind "prestamos" "extra_dolar" "Documento" "[buscar]" "ExactMatch=No;CaseSensitive=No"

If "[buscar]" "=" ""
AlertBox "RESULTADO" "El documento [buscar] no se encuentra en el sistema."
else

AlertBox "RESULTADO" "El documento [buscar] no se encuentra en el sistema."

endif

@vadim,@gaev

Hi guys, this must be a nonsense but I can't get the result.

I have a database called loans and in the table extra_dolar there is the document record.

What I'm trying to do is do a search to locate a document, and if it's not there, show an alertbox.

 

dbpFind "prestamos" "extra_dolar" "Documento" "[buscar]" "ExactMatch=No;CaseSensitive=No"

If "[buscar]" "=" ""
AlertBox "RESULTADO" "El documento [buscar] no se encuentra en el sistema."
else

AlertBox "RESULTADO" "El documento [buscar] no se encuentra en el sistema."

endif

Where am I going wrong?

Thanks

@joferar333

1) Instead of ...

If "[buscar]" "=" ""

... try ...

If "[prestamos.extra_dolar.$RecCount]" "=" "0"

2) When you use options "ExactMatch=No;CaseSensitive=No", then, if [buscar] contains " Abcd", you will get matches for records containing ...

a) abcd
b) aBcd
c) ab
d) D

.. ANYWHERE within the field Documento; is that what you want ?

3) Both your AlertBox messages are the SAME !

dbpFind "prestamos" "extra_dolar" "Documento" "[buscar]" "ExactMatch=No;CaseSensitive=No"

If "[dbperror]" "=" "No matching records found."
AlertBox "RESULTADO" "El documento [buscar] no se encuentra en el sistema."
else

AlertBox "RESULTADO" "El documento [buscar] no se encuentra en el sistema."

endif