Skip to main content

AccessTr.neT


Dlookup fonksiyonunda kriter hatası

Dlookup fonksiyonunda kriter hatası

Çözüldü #4
veri türüne göre kod konusunda
ekteki nota bir göz at ve sakla Img-grin sanırım çözeceksiniz
For numerical values:
Dlookup ("FieldName" , "TableName" , "Criteria = n")

For strings: (note the apostrophe before and after the value)
Dlookup ("FieldName" , "TableName" , "Criteria= 'string'")

For dates:
Dlookup ("FieldName" , "TableName" , "Criteria= #date#")



Refering to a form control

For numerical values:
Dlookup ("FieldName", "TableName", "Criteria = " & forms!FormName!ControlName)

For strings: (note the apostrophe before and after the value)
Dlookup ("FieldName", "TableName", "Criteria = '" & forms!FormName!ControlName & "'")

dates:
Dlookup ("FieldName", "TableName", "Criteria = #" & forms!FormName!ControlName & "#")



Mix-n-Match

Dlookup ("FieldName", "TableName", "Criteria1 = " & Forms!FormName!Control1 _
& " AND Criteria2 = '" & Forms!FormName!Control2 & "'" _
& " AND Criteria3 =#" & Forms!FormName!Control3 & "#")


Kolay gelsin
okileturc, 18-03-2009 tarihinden beri AccessTr.neT üyesidir.
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Dlookup fonksiyonunda kriter hatası - Yazar: derebeyi - 29/01/2011, 20:18
Cvp: Dlookup fonksiyonunda kriter hatası - Yazar: okileturc - 29/01/2011, 20:29
Task