Rick Lipkin wrote:Is there a 'reference manual' for syntax on the object commands
Rick Lipkin wrote:oRS:Insert ??
oRS:Delete ??
oRs:Add ??
oRs:Update ??
oRs:AddNew() // appends a new empty record
oRs:Delete() // deletes the current record
oRs:Update() // commits the changes to the current record (mandatory)
Rick Lipkin wrote:Just guessing there .. what I am trying to do in this snipit is to start a DELETE SQL query ( 'DELETE FROM table-name where search-condition ) to go out and DELETE all blank records with " " for a 'file_num' ??
FUNCTION MAIN()
LOCAL oCn
oCn = CREATEOBJECT( "ADODB.Connection" )
oCn:Open( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=clienti2.mdb" )
? oCn:Execute( "DELETE FROM Clienti WHERE Cliente LIKE 'A%'" )
oCn:Close()
RETURN NIL
oCn:Open( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\server\datafiles\clienti2.mdb" )
Rick Lipkin wrote:oRs:Execute( "DELETE FROM LWMFS WHERE FILE_NUM = 'NIL' " )
oCn:Execute( "DELETE FROM LWMFS WHERE IsNull(FILE_NUM)" )
Rick Lipkin wrote:Lets say I have a recordset filter with 10 rows on a related table.. and I want to update a new column with a new foreign key .. something like "INSERT INTO SECOND TABLE WITH "+"'"+cID+"'"+" FOR FILE_NUM = "+"'"+cFILE_NUM+"'" ) I am sure my syntax is incorrect .. will I need to release the recordset on the second table.. create a connection to the second table and run the query to update the 10 rows ?? ..
Rick Lipkin wrote:Two other ( hopefully last ) recordset questions ..
1) skip -1 ( possibly ) :MovePrior() ??
2) Delete current record ( possibly ) elCurrent() ??
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 87 guests