AccessTr.neT
Pozitif ve Negatif SQL Cümlesi - Baskı Önizleme

+- AccessTr.neT (https://accesstr.net)
+-- Forum: Microsoft Access (https://accesstr.net/forum-microsoft-access.html)
+--- Forum: Access Cevaplanmış Soruları (https://accesstr.net/forum-access-cevaplanmis-sorulari.html)
+--- Konu Başlığı: Pozitif ve Negatif SQL Cümlesi (/konu-pozitif-ve-negatif-sql-cumlesi.html)



Pozitif ve Negatif SQL Cümlesi - PEHLEEONE - 28/11/2011

Rapordaki bakiyede çıkan sayı eğer "-" (negatif) ise "A" , "+" (pozitif) ise "B" yazdırmak istiyorum. Bunun için kullanmam gereken kod nedir?


Cvp: Pozitif ve Negatif SQL Cümlesi - alpeki99 - 28/11/2011

if (sayi < 0) then
sonuc = "A"
elseif (sayi = 0)
sonuc = "sıfır"
else
sonuc = "B"
end if
bu şekilde yapabilirsiniz.


Cvp: Pozitif ve Negatif SQL Cümlesi - PEHLEEONE - 28/11/2011

Teşekkürler..