If anyone knows the answer to this, could you please help me...
I have a form with a grid, and a data contol on it (datCust). I have placed this code in my form:
If datCust.Recordset.RecordCount > 0 Then
{do somthing....}
End If
Sometimes I get an error 3, Object variable or With block variable not set. I've traced it down to the above line.
I don't use data controls much, but sometimes it's a treat.
How can I check the object, thus avoiding the dreaded error.
P.S. I can't re-create the error, but it happends in my program once in a while in the field.
I'm using VB6 with sp3
Thanks
-Gary
They never have to knock if your door is always open.
I have a form with a grid, and a data contol on it (datCust). I have placed this code in my form:
If datCust.Recordset.RecordCount > 0 Then
{do somthing....}
End If
Sometimes I get an error 3, Object variable or With block variable not set. I've traced it down to the above line.
I don't use data controls much, but sometimes it's a treat.
How can I check the object, thus avoiding the dreaded error.
P.S. I can't re-create the error, but it happends in my program once in a while in the field.
I'm using VB6 with sp3
Thanks
-Gary
They never have to knock if your door is always open.