Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
Crystal Reports e reportistica
Errore creazione condizione query di selezione da esperto di selezione...
venerdì 16 agosto 2013 - 17.24
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
STAR23
Profilo
| Newbie
1
messaggi | Data Invio:
ven 16 ago 2013 - 17:24
Ciao a tutti,
ho un problema con una condizione or utilizzando una formula in esperto di selezione
se eseguo le condizioni singolarmente il risultato è corretto, mentre se le unisco viene valutata solo la prima...
la formula è la seguente
{tabella1.valore1}={?parametro1} and
{?parametro2}= {tabella2.parametro2} and
{?parametro3}= {tabella2.parametro3} and
{tabella3.valore}=1 and
not {tabella4.valore} and
(
(not ISNULL({tabella4.ID_1}) and {tabella5.valore}=true )
or ({tabella6.valore2}=false and {tabella6.valore}=true and NOT ISNULL({tabella4.ID_2}))
or (not ISNULL({tabella4.ID_3}))
)
ripeto, eseguite singolarmente
{tabella1.valore1}={?parametro1} and
{?parametro2}= {tabella2.parametro2} and
{?parametro3}= {tabella2.parametro3} and
{tabella3.valore}=1 and
not {tabella4.valore} and
(not ISNULL({tabella4.ID_1}) and {tabella5.valore}=true )
e
{tabella1.valore1}={?parametro1} and
{?parametro2}= {tabella2.parametro2} and
{?parametro3}= {tabella2.parametro3} and
{tabella3.valore}=1 and
not {tabella4.valore} and
({tabella6.valore2}=false and {tabella6.valore}=true and NOT ISNULL({tabella4.ID_2})
e
{tabella1.valore1}={?parametro1} and
{?parametro2}= {tabella2.parametro2} and
{?parametro3}= {tabella2.parametro3} and
{tabella3.valore}=1 and
not {tabella4.valore} and
not ISNULL({tabella4.ID_3})
selezionano i dati corretti
quando controllo la query di selezione praticamente non tiene conto delle parentesi e mette tutti gli and/or di file...
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !