Hi Kevin,
Here's what I found out in the DetermineDataFormat function. It's a weird one.
The IF PEMSTATUS(tuData, "RecordCount", 5) condition returns .F., so I changed the code to TYPE('tuData.RecordCount') = 'N' and it works. The weird thing is I tried PEMSTATUS() on a recordset in the command window and it returns .T. I appreciate you pointing me in the right direction. Thanks --Tom
>ConvertObject is a method that converts a VFP object to a cursor...this tells me that the business object thinks you have passed an object, rather than an ADO recordset as a parameter in the SetDataX() method. If you look at the code in CDataAccessBase.SetDataX(), you'll see that it calls the DetermineDataFormat function to determine the format of the data passed to KBizObj.SetDataX()...it's checking for a RecordCount property on the object you're passing. You can temporarily put some test code (e.g. STRTOFILE()) in this function to see what's happening.
>
>Regards,