So, the following code that I'm posting, was written on my coworkers PC, and is currently in production. On his PC it works fine, as well as in production. We copied the solution to my PC and now it errors whenever I run it. I get an "Object reference not set to an instance of an object." error. The line that errors is in bold. Basically, the only idea we have is that there could be some sort of computer settings that are different between our machines that could be screwing it up. Does anyone know any that would or a way to fix this problem? We're both stumped. Thanks in advance.
PrivateFunction loadTiffList() AsBoolean
Try
da.SelectCommand.CommandText = "Our Select Command"
da.Fill(ds, "tiffs")
If ds.Tables(0).Rows.Count = 0 Then
ReturnFalse
Else
ReturnTrue
EndIf
Catch ex As Exception
ThrowNew Exception("Error during loadTiffList(): " & ex.Message & vbCrLf & vbCrLf & ex.StackTrace & vbCrLf & vbCrLf)
EndTry
EndFunction