"SStory >" <Shane_Storyonline.msn.com <remove the 'online.' to send me
mail> wrote in message news:OWAMC9tXDHA.536TK2MSFTNGP10.phx.gbl...
....NullReferenceException means that a variable isn't set to anything (i.e.,> myParam = cmdAddRepAvailLoc.Parameters.Add("State", SqlDbType.Char)
> myParam.Value = StatesAddLoc.SelectedItemText 'this is the line it errors
> Value is set to an property of the user control that returns the
> selecteditems text
> What gives here?
it's set to "Nothing"). I'd bet that "StatesAddLoc" is that variable.
I see you're using VB. Is Option Strict set to "On"?