> Private Sub VisitorSelectionPicker_ItemSelected(ByVal sender As System.Object, ByVal e As OakLeaf.MM.Main.Windows.Forms.mmPickerItemSelectedEventArgs) Handles VisitorSelectionPicker.ItemSelected > > ' Find the position of the primary key selected in the Picker > Dim visitorIdSelected As Integer = _ > CInt(e.dsSelectedItems.Tables.Item(0).Rows(0).Item("VisitorId")) > > ' TODO - Deterimine why Me.VisitorDataset assignment fails with "Input string was not in a correct format." error > Me.VisitorDataset = _ > CType(Me.oVisitor.GetVisitorByVisitorId(visitorIdSelected), VisitorDataset) > > End Sub >I’m not sure why you’re getting that error. I recommend trying the Convert.ToInt32() method instead.