Try this example, substituting your own field and table names:
DLookUp("[Rate]","[tblRates]","[ID] = " & Form![ID] & " And [CompanyID] = "
& Form![CompanyID])
The above will only work if ID and CompanyID are numeric. If, for example,
ID were text, then you would need to add quotes:
DLookUp("[Rate]","[tblRates]","[ID] = """ & Form![ID] & """ And [CompanyID]
= " & Form![CompanyID])

Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
> Hi,
>
[quoted text clipped - 15 lines]
> Thanks,
> Jody
Jody - 19 May 2008 19:43 GMT
Thanks Arvin. It worked!
Jody
> Try this example, substituting your own field and table names:
>
[quoted text clipped - 25 lines]
> > Thanks,
> > Jody