This works .. if sql statement recordset returns no rows ..
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 ..
IF oRs:EOF
// no records
ENDIF
IF oRs:RecordCount = 0
// no records
ENDIF
Rick Lipkin wrote:Looking for that magic INSERT sql statement and the connection string to update all the matching relational records and tables.
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 ..
oRs:Find( "Cliente LIKE 'A%'" )
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 ??
"Provider=sqloledb;Data Source=ipaddress;User Id=userid;Password=password"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 95 guests