
Quote from joferar333 on September 7, 2024, 3:28 pmHola 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."
elseAlertBox "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."
elseAlertBox "RESULTADO" "El documento [buscar] no se encuentra en el sistema."
endif
Where am I going wrong?
Thanks
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
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
Quote from Gaev on September 7, 2024, 6:28 pm@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 !
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 !

Quote from alangonzalez91 on September 17, 2024, 12:24 pmdbpFind "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."
elseAlertBox "RESULTADO" "El documento [buscar] no se encuentra en el sistema."
endif
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