
IF oRS1:eof
Msginfo( "not found" )
RETURN(NIL)
ENDIF
Rick Lipkin wrote:Why when I try to open a recordset and the sql statement does not find any results .. can I not try to trap a 'no find' situation ..
Code: Select all
IF oRs:EOF
// no records
ENDIF
Code: Select all
IF oRs:RecordCount = 0
// no records
ENDIF
An ADORDD would be a wrapper to ADO and could be very useful to keep xBase syntax. But conceptually xBase and SQL are two very different beasts and I'm still not sure if xBase syntax is the right path to follow.Rick Lipkin wrote:Any feelings on ADO vs ( perhaps ) the sqlrdd ?? ... what has to be on the client to make the connection ?? .. for ms sql that is ??
Rick Lipkin wrote:I am using your :filter suggestion for locate records .. is there a :find() or :locate() method in ADO .. I just want to 'seek' a record in a recordset and move the pointer to that record ..
Code: Select all
oRs:Find( "Cliente LIKE 'A%'" )
It depends on the cursortype specified in the Open() method.Rick Lipkin wrote:Also .. it appears that a recordset is ( like ) a 'local cursor' .. what are the visability of updates from one workstation recordset to another workstation ( recordset ) that may have the same table open .. does the UPDATE clause on the listbox allow the recordsets to be refreshed from the table .. or is it once the recorset is created .. it never goes back to the origional table for refreshes ??
Code: Select all
"Provider=sqloledb;Data Source=ipaddress;User Id=userid;Password=password"