NE > SE and NE > SW ... berarti NE yang terbesar
SE > NE and SE > SW ... berarti SE yang terbesar
SW > SE and SW > NE ... berarti SW yang terbesar
other ................. berarti tidak ada nilai terbesar
bisakah anda menerapkan fungsi iif untuk kondisi seperti ini ?
saya bantu dengan pseudo:
if (NE>SE and NE>SW) then
"NE"
else
if (SE>NE and SE>SW) then
"SE"
else
if (SW>SE and SW>NE) then
"SW"
else
"N/A"
ayo coba kerjakan dengan iif di query, hasilnya kembalikan kemari.
terus untuk pertanyaan anda yang kedua bagaimana ? mencari nilai terbesar di setiap kolom itu maksudnya bagaimana ? report tersendiri bukan ?
aksan kurdin
--- In belajar-access@yahoogroups.com, "metazone63" <metazone63@...> wrote:
>
> Dalam Query1 terdpt kolom NE, SE, dan SW. Ketiga kolom tsb mempunyai nilai yg berbeda.
> Contoh
> Tgl 1/Mei/2006 NE:0, SE:3, SW:0 (terbesar nilai 3 pd kolom SE)
> Tgl 5/Mei/2006 NE:3, SE:1, SW:1 (terbesar nilai 3 pd kolom NE)
>
> Output pada report yaitu,
> Year, Month, Day, Keterangan
> 2006, MEI, 01, SE
> 2006, MEI, 05, NE
>
> Field "Keterangan" pd report adalah Nama kolom yg mempunyai nilai terbesar dr kolom-kolom lainnya.
>
> Seperti itulah gambarannya mas.....
> Maaf sdh membuat repot mas Aksan....
>
>
>
>
>
> --- In belajar-access@yahoogroups.com, "aksankurdin" <aksan.kurdin@> wrote:
> >
> > Coba gambarkan tabel keluaran yang anda inginkan ....
> > Field2 apa saja dan nilai apa saja yang seharusnya keluar.
> >
> >
> > aksan kurdin
> >
>
------------------------------------
SPAM IS PROHIBITEDYahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/belajar-access/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/belajar-access/join
(Yahoo! ID required)
<*> To change settings via email:
belajar-access-digest@yahoogroups.com
belajar-access-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
belajar-access-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
No comments:
Post a Comment