Unable to Update SQL recordset: Insufficient base table information 
Author Message
 Unable to Update SQL recordset: Insufficient base table information

Hey all,

I'm reposting my question after working on the suggestions...I am unable
to update my dBASE table with the following code:

Dim adoMetadata as Adodc
Dim connectString as String
connectString = "Provider=MSDASQL.1;DBQ=G:\MN1_gis\Data\Tables;
      "DefaultDir=G:\MN1_gis\Data\Tables;Driver={Microsoft dBase
Driver     (*.dbf)};DriverId=21;FIL=dBase III;UID=admin;Initial
Catalog=G:\MN1_gis\Data\Tables;"

With adoMetadata
    .Mode = adModeReadWrite
    .ConnectionString = connectString
    .CommandType = adCmdText
    .RecordSource = "SELECT * FROM  Metadata"
    .LockType = adLockOptimistic
    .CursorType = adOpenDynamic
    .CursorLocation = adUseClient
    .Refresh
End With

With DataCombo1(0)
Set .DataSource = adoMetadata
Set .RowSource = adoMetadata
    .BoundColumn = "ID"
    .ListField = "ID"
    .DataField = "ID"
End With

I then execute "adoMetadata.Recordset.update" from a command button
click.  From this point on, I am unable move to the next or previous
record without the following error coming up:

"Insufficient base table information for updating or refreshing"

I'm going nuts here.  Can I not change records on an open recordset?
With DAO, this was no problem.  Any help or comments would be greatly
appreciated.  Thanks in advance,

Mark
--
Mark Giesbrecht
GIS Analyst
GeoArctic International Services Ltd.

phone: (403) 290-1320  fax:  (403) 264-5848



Sun, 17 Feb 2002 03:00:00 GMT  
 Unable to Update SQL recordset: Insufficient base table information
What are you declaring adoMetadata as?
Quote:
>Dim adoMetadata as Adodc
>Dim connectString as String
>connectString = "Provider=MSDASQL.1;DBQ=G:\MN1_gis\Data\Tables;
>      "DefaultDir=G:\MN1_gis\Data\Tables;Driver={Microsoft dBase
>Driver     (*.dbf)};DriverId=21;FIL=dBase III;UID=admin;Initial
>Catalog=G:\MN1_gis\Data\Tables;"



Sun, 17 Feb 2002 03:00:00 GMT  
 Unable to Update SQL recordset: Insufficient base table information
try the unique table dynamic property in recordset, should do fine

--
Markus Adrian Karjadi


Quote:
> Hey all,

> I'm reposting my question after working on the suggestions...I am unable
> to update my dBASE table with the following code:

> Dim adoMetadata as Adodc
> Dim connectString as String
> connectString = "Provider=MSDASQL.1;DBQ=G:\MN1_gis\Data\Tables;
>       "DefaultDir=G:\MN1_gis\Data\Tables;Driver={Microsoft dBase
> Driver     (*.dbf)};DriverId=21;FIL=dBase III;UID=admin;Initial
> Catalog=G:\MN1_gis\Data\Tables;"

> With adoMetadata
>     .Mode = adModeReadWrite
>     .ConnectionString = connectString
>     .CommandType = adCmdText
>     .RecordSource = "SELECT * FROM  Metadata"
>     .LockType = adLockOptimistic
>     .CursorType = adOpenDynamic
>     .CursorLocation = adUseClient
>     .Refresh
> End With

> With DataCombo1(0)
> Set .DataSource = adoMetadata
> Set .RowSource = adoMetadata
>     .BoundColumn = "ID"
>     .ListField = "ID"
>     .DataField = "ID"
> End With

> I then execute "adoMetadata.Recordset.update" from a command button
> click.  From this point on, I am unable move to the next or previous
> record without the following error coming up:

> "Insufficient base table information for updating or refreshing"

> I'm going nuts here.  Can I not change records on an open recordset?
> With DAO, this was no problem.  Any help or comments would be greatly
> appreciated.  Thanks in advance,

> Mark
> --
> Mark Giesbrecht
> GIS Analyst
> GeoArctic International Services Ltd.

> phone: (403) 290-1320  fax:  (403) 264-5848



Mon, 18 Feb 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Unable to Update SQL recordset: Insufficient base table information

2. Insufficient base table information for updating or refreshing.

3. Help .....insufficient base table information for updating or refreshing

4. Insufficient base table information for updating or refreshing

5. Error: Insufficient base table information for updating or refreshing

6. Insufficient base table information for updating or refreshing

7. Insufficient base table information for updating or refreshing.

8. Error 2147467259 Insufficient base table information for updating or refreshing

9. Insufficient base table information for updating or refreshing

10. XP installation : 2147467259 Insufficient base table information for updating or refreshing

11. Insufficient base table information for updating or refreshing

12. Insufficient base table information for updating...

 

 
Powered by phpBB® Forum Software