Lookup in a formula

Lookup in a formula

In a formula, can I do a lookup on another form? For example, given the ID of a record in FormX, can I do something like

lookup(FormX,theID,lastName)

The value would be the lastName from FormX for the record id of theID.