Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datagrid error
Message
From
08/09/1999 16:30:16
John Reidy
Old Dominion Animal Health Center
Mclean, Virginia, United States
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Datagrid error
Miscellaneous
Thread ID:
00262595
Message ID:
00262595
Views:
47
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?
Reply
Map
View

Click here to load this message in the networking platform