How to get List item based on list ID

Mar 9, 2012 at 10:48 AM

Hi all,

         I have a list name with A and  it has items (ID,Name,Number)

        And other list name with B and it has items(Customer Name,Number,IID)

Here 'Customer Name' is the Look up Field:   I need to get the Name item to Customer Name from list A, when both ilst's ID = IID.