Bien, he probado tanto el que me ha dicho vtdeleon
Código:
If ((trim(DBEdit1.text) <> '') and (trim(DBEdit2.text) <> '')) then
...como...
Código:
If((trim(DBEdit1.text) <> '') and (trim(DBEdit2.text) <> '') then
...el resultado sigue siendo el mismo..me sigue entrando dentro del with de todos modos...
