getting field value

getting field value

Hi,

I have 2 forms. In the 1st form i have all the data like code, contact person's name, phone no, address etc....

in the 2nd form i just want to add the code and want that the corresponding data like contact person and phone number comes on its own. How can i do that?? I tried using the lookup function and tried seeting up a criteria but it does not seem to work.

Harmeet
link2hs