Try:
=DLookUp("[FieldName]","[TableOrQueryName]","[STN CD])= " & Forms![All
Stations]![Profit Center])
where FieldName is the name of the field in the table or query
TableOrQueryName whose value you want returned where the value of the STN CD
field matches the value of the Profit Center control on the form All
Stations. If the STN CD field is a text data type rather than a number data
type you need to wrap the value in quotes:
=DLookUp("[FieldName]","[TableOrQueryName]","[STN CD])= """ & Forms![All
Stations]![Profit Center] & """")
Ken Sheridan
Stafford, England
pgarcia said:
I'm have some truble with the following (this is in "Form"):
DLookUp([“Expr12â€],[All Stations]![“STN CDâ€])= & forms( [All
Stations]![“Profit Centerâ€])
thanks