Hi all,

I have been trying to change my code from SQL to Stored Procedures and I am having some problems with my code. Been trying to figure it out for a few hours already and not sure what's going on. The Error is:

Variable is used before it has been assigned a value. A null reference exception could result at run-time.
I am getting this issue on two lines. Those being the following:
vb Code:
  1. 'Refill the DataAdapter with new information obtained from the database.
  2. GetInformationDA.Fill(GetInformationDS, TableName)

vb Code:
  1. 'Assign the database column name to the DisplayMember and ValueMember properties.
  2. .DisplayMember = ColumnName