Sort of.
DLookup will only return a single value, but you can have it concatenate
fields together. For example, you could have it return field1 and field2
separated by a comma, and then split the values apart afterwards.
Dim strField1 As String
Dim strField2 As String
Dim strReturn As String
strReturn = DLookup("[Field1] & ',' & [Field2]", _
"[tblName]", "[Field1] = 0")
strField1 = Left(strReturn, InStr(strReturn, ",") - 1)
strField2 = Mid(strReturn, InStr(strReturn, ",") + 1)
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
JOM said:
can you use dlookup to find more than 1 item from a table e.g.,
dlookup("Field1","field2",[tblName],field 1=0)