IALweb Homepage
Forum Home Forum Home > MS Office > Microsoft Office > Microsoft Access
  New Posts New Posts RSS Feed - Report Access - test su un campo
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

 Topic   Topic Hot   Topic New   Topic Locked   Topic Sticky   Topic Hidden

Topic ClosedReport Access - test su un campo

 Post Reply Post Reply
Author
Message
elly View Drop Down
Nuovo Utente
Nuovo Utente


Joined: 10/Mag/2007
Status: Offline
Points: 17
Direct Link To This Post Topic: Report Access - test su un campo
    Posted: 10/Mag/2007 at 17:00

Ciao a tutti,

ho un problema con un report che prende i dati da una query. tra le colonne di quest'ultima c'è un dato flag che mi dice se è un cliente di un tipo piuttosto che di un altro. Nel report vorrei, ad ogni riga che scrivo, in un determinato campo del corpo, testarmi questo flag e poi mettere il risultato in esso....come posso fare? volevo utilizzare nella proprietà origine dati una iff immediata ma mi dà errore di forma....

Potete aiutarmi?

Grazie mille. Ciao

Back to Top
Xavier View Drop Down
Super Moderatore
Super Moderatore
Avatar

Joined: 23/Giu/2006
Location: Italy
Status: Offline
Points: 3751
Direct Link To This Post Posted: 10/Mag/2007 at 17:30
benvenuta nel forum..

per prima cosa, posta la funzione che hai usato nell'iff..

magari c'è qualche errore in quella e basta correggerlo per far funzionare il tutto..

ale
Per richieste inviatemi MP

Usate SEMPRE il tasto cerca e siate chiari nelle discussioni

MY WEBSIT
Back to Top
elly View Drop Down
Nuovo Utente
Nuovo Utente


Joined: 10/Mag/2007
Status: Offline
Points: 17
Direct Link To This Post Posted: 11/Mag/2007 at 10:04

questa è la mia funzione iff:

=iff(flag_forf].value=0,([qta_ddt]*[prezzo_un]),"0") dentro alla casella di testo del report....

aiutoooo!!

Back to Top
accessato View Drop Down
Moderatore
Moderatore
Avatar

Joined: 12/Apr/2007
Location: Italy
Status: Offline
Points: 2869
Direct Link To This Post Posted: 11/Mag/2007 at 10:33

Iif([flag_forf].value=0;[qta'_ddt]*[prezzo_un];"0"). questa e' la sintassi, pero' non ho capito se i campi mensionati sono del repert o della qry. Se i campi sono della qry devi indicare anche il nome della qry stessa nella espressione. Cia'

Back to Top
elly View Drop Down
Nuovo Utente
Nuovo Utente


Joined: 10/Mag/2007
Status: Offline
Points: 17
Direct Link To This Post Posted: 11/Mag/2007 at 10:58

mi dà errore cmq.... allora, il report ha come origine dati la query, quindi dovrebbe capire che i dati della iif sono della query.....no?

l'errore di sintassi che mi dà è: E' possibile che sia stato immesso un operando senza un operatore....

Back to Top
accessato View Drop Down
Moderatore
Moderatore
Avatar

Joined: 12/Apr/2007
Location: Italy
Status: Offline
Points: 2869
Direct Link To This Post Posted: 11/Mag/2007 at 11:03

No.. devi indirizzarlo perche' al momento la qry e' in background hai davanti il report.Il flag come e' formattato si/no oppure testo oppure numero 1 o 0?

Back to Top
elly View Drop Down
Nuovo Utente
Nuovo Utente


Joined: 10/Mag/2007
Status: Offline
Points: 17
Direct Link To This Post Posted: 11/Mag/2007 at 11:17

il flag è una casella di controllo che può valere o sì/no o 0/1....

cmq l'ho indirizzato e mi dà cmq errore...guarda:

=iif([q_fatt]![flag_forf] = 0,[q_fatt]! importo, "0")

ho cambiato la parte in caso di vero, perchè l'operazione l'ho fatta direttamente nella query e l'ho messa nel campo importo....

Back to Top
accessato View Drop Down
Moderatore
Moderatore
Avatar

Joined: 12/Apr/2007
Location: Italy
Status: Offline
Points: 2869
Direct Link To This Post Posted: 11/Mag/2007 at 11:17

Prova questa..

Iif(isnull([flag_forf]);[qta'_ddt]*[prezzo_un];"0"))

Back to Top
elly View Drop Down
Nuovo Utente
Nuovo Utente


Joined: 10/Mag/2007
Status: Offline
Points: 17
Direct Link To This Post Posted: 14/Mag/2007 at 10:48

Non ti ho più detto niente, ale, perchè poi sono riuscita! Grazie del tuo aiuto!

ciao!

Back to Top
Xavier View Drop Down
Super Moderatore
Super Moderatore
Avatar

Joined: 23/Giu/2006
Location: Italy
Status: Offline
Points: 3751
Direct Link To This Post Posted: 14/Mag/2007 at 11:29
credo che i tuoi ringrazziamenti vadano ad accessato.. non a me..


ciao ciao

Per richieste inviatemi MP

Usate SEMPRE il tasto cerca e siate chiari nelle discussioni

MY WEBSIT
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 10.11
Copyright ©2001-2012 Web Wiz Ltd.

This page was generated in 0,156 seconds.