Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datagrid error
Message
De
08/09/1999 16:30:16
John Reidy
Old Dominion Animal Health Center
Mclean, Virginie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Datagrid error
Divers
Thread ID:
00262595
Message ID:
00262595
Vues:
48
I have a project in which I use a datagrid to view a disconnected recordset from a Foxpro table with the following code:

Set cn = New ADODB.Connection
cn.Open "SourceType=DBF;SourceDB=c:\activity;Driver={Microsoft Visual FoxPro Driver}"
Set rs = New ADODB.Recordset
rs.CursorLocation = adUseClient
rs.Open "select Division as Dept, activity as Item, Descript as Description, unit_price as Price, Units as Unit, quote as Quoting_guidance where del = 0 from activity order by Dept group by Descript", cn, adOpenStatic, adLockBatchOptimistic
rs.ActiveConnection = Nothing
cn.Close

Set DataGrid1.DataSource = rs


My problem is that when I want to update the info, I get an error. I re-open the connection and use use rs.UpdateBatch to make the update, and the error consists of
"not enough base table information to perform an update" or someting quite similar. Any suggestions?
Répondre
Fil
Voir

Click here to load this message in the networking platform