Can someone please post sample code which shows how to deal with a lookup column during an item insert (using object model).
Here is the basic framework for an insert:
SPListItem oListItem = oList.AddItem();
// Text field - very easy
oListItem["Title"] = SomeStringValue;
//Hyperlink - requires some work but format is like this:
oListItem["HyperlinkField"] = URL+ ", " + Desc;
So what I'm missing is how to add a lookup field, thanks in advance