DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
strSQL = " Select [ISG_NO], [ISG_YIL], [KONU] from [ACIKAKSIYON$] " & _
" where [ISG_NO] in (select max([ISG_NO]) from [ACIKAKSIYON$] where [ISG_YIL] =" & Year(Date) & ")"
Haluk hocam,buda oldu.-Teşekkürler @bluefalcon
-Evren Bey, başka bir alternatif de; ekli dosyadaki gibi "max" fonksiyonunu aşağıdaki gibi "subquery" içinde kullanmak olabilir....
.Kod:strSQL = " Select [ISG_NO], [ISG_YIL], [KONU] from [ACIKAKSIYON$] " & _ " where [ISG_NO] in (select max([ISG_NO]) from [ACIKAKSIYON$] where [ISG_YIL] =" & Year(Date) & ")"
Rica ederim.Gerçekten muhteşemsiniz. Gayesi sadece yardımcı olmak ve kendini geliştiribilmek olan kişilerin buluştuğu bu yerde bulunuyor olmak bile mutluluk verici. Hepinize tekrar tekrar teşekkür ederim.
strSQL = " Select [ISG_NO], [ISG_YIL], [KONU] from [ACIKAKSIYON$] as a" & _
" where exists(" & _
"select * from [ACIKAKSIYON$] as b where b.[ISG_YIL] = a.[ISG_YIL] And b.[ISG_YIL] =" & Year(Date) & _
") Order By a.[ISG_NO] Desc"
Böyle de bir alternatifimiz var...
strSQL = " Select [ISG_NO], [ISG_YIL], [KONU] from [ACIKAKSIYON$] as Table1" & _
" inner join" & _
" (" & _
" select max([ISG_NO]) as [MAX_ISG_NO] from [ACIKAKSIYON$] where [ISG_YIL] =" & Year(Date) & _
" )" & _
" as Table2" & _
" on Table1.[ISG_NO] = Table2.[MAX_ISG_NO]"