What is the type of the object or value that that function is supposed to return? If it's supposed to return an Object then that's what you should be declaring:If it's supposed to be some other type then specify that. You should ALWAYS specify the type of EVERY field, property and function.Code:Public Function GetSingleData(ByVal strQuery As String) As Object




Reply With Quote