Possible Duplicate:
How to set ListItem Lookup Field value
I have a SharePoint list with a lookup field and I want to add values to this list through the SharePoint Object Model.
but I always get a value out of range for the lookup field when I submit the changes.
any clues or guides on storing lookup fields in code?