AccessTr.neT
Dlookup Type Missmatch - 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ığı: Dlookup Type Missmatch (/konu-dlookup-type-missmatch.html)

Sayfalar: 1 2


Re: Dlookup Type Missmatch - feraz - 27/06/2020

MsgBox Dlookup ("[Kimlik]", "Tbl_1", "fix([trh]) = " & Fix(CDbl(CDate(Me.tarh.Value))) & " And [firma] = '" & Me.firma.Value & "'")

(27/06/2020, 18:07)feraz yazdı:
MsgBox Dlookup ("[Kimlik]", "Tbl_1", "fix([trh]) = " & Fix(CDbl(CDate(Me.tarh.Value))) & " And [firma] = '" & Me.firma.Value & "'")
Veri bulunamazsa hata veriyor bu yüzden NZ fonksiyonu gibi kod ekleyebilirsiniz.


RE: Dlookup Type Missmatch - feraz - 27/06/2020

Alttakide standart yoldan olan.Fix yöntemini bende yeni sayın @berduş   hocadan öğrendim sağolsun.
Sorun tarih alanıyla ilgiliymiş yani tarih/saat olduğu için.

MsgBox Dlookup ("[Kimlik]", "Tbl_1", "format([trh],'dd.mm.yyyy') = '" & Format(CDbl(CDate(Me.tarh.Value)), "dd.mm.yyyy") & "' And [firma] = '" & Me.firma.Value & "'")



RE: Dlookup Type Missmatch - sipuasfaf - 27/06/2020

Yanıt için teşekkürler. (:


RE: Dlookup Type Missmatch - feraz - 27/06/2020

(27/06/2020, 18:56)sipuasfaf yazdı: Yanıt için teşekkürler. (:
Rica ederim.