Your code assumed that the database query actually returned data. It's not and you're trying to use a property or method of an object that doesn't exist.
The error is telling you that either
ds
or
ds.Tables(0)
returned null.
In either case, you really need to check for the existence of your returned objects before you try to use them. Like
ExecuteSQL(2, "select * from ITEMINVENTORY where availability = 'Unique'")
If ds Is Nothing OrElse ds.Tables.Count = 0 Then
' What do you need to do if the database doesn't return anything??
Else
cb_ItemListToUpdate.DataSource = ds.Tables(0).DefaultView
...
Your code is also badly written. What is
ds
? Where is it defined? What does
ExecuteSQL
do? How does it know about
ds
? Why are you using "class global" variables like this?