veri türüne göre kod konusunda
ekteki nota bir göz at ve sakla 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.