Insufficient base table information for updating or refreshing? 
Author Message
 Insufficient base table information for updating or refreshing?

I am using VB6-ADO-Access 97 database.  On one form I have a datagrid
control with an ADO recordset as its data source the code is as
follows: -

Dim Rs As ADODB.Recordset
Set Rs = New ADODB.Recordset
Rs.Open "SELECT * from Descriptions WHERE Descriptions.LinkField = '" &
datPrimaryRS.Recordset.Fields("URN") & "';", ConnMain, adUseClient,
adLockOptimistic
Set DataGrid1.DataSource = Rs

This works fine as far as showing the grid with the correct data in at
run time.  However, when I edit the text within a cell and then cause
the update event to fire I get the following message and the update
does not occur: -

Insufficient base table information for updating or refreshing

Can anyone advise me of the cause of this message and how to fix the
problem?  I cant find mention of it in the help section.

Thanks,
Ian B

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Sat, 02 Nov 2002 03:00:00 GMT  
 Insufficient base table information for updating or refreshing?
It seems you have no primary key for that table. The SQL-server(or access!)
needs keys to
identify the record youre editing. In your case ,the server didt know
which record to update??

greets
nico balen
database programmer,.germany

one hint: you can combine these to rows of code

Dim Rs As ADODB.Recordset
 Set Rs = New ADODB.Recordset

to

Dim Rs As new ADODB.Recordset


Quote:
> I am using VB6-ADO-Access 97 database.  On one form I have a datagrid
> control with an ADO recordset as its data source - the code is as
> follows: -

> Dim Rs As ADODB.Recordset
> Set Rs = New ADODB.Recordset
> Rs.Open "SELECT * from Descriptions WHERE Descriptions.LinkField = '" &
> datPrimaryRS.Recordset.Fields("URN") & "';", ConnMain, adUseClient,
> adLockOptimistic
> Set DataGrid1.DataSource = Rs

> This works fine as far as showing the grid with the correct data in at
> run time.  However, when I edit the text within a cell and then cause
> the update event to fire I get the following message and the update
> does not occur: -

> "Insufficient base table information for updating or refreshing"

> Can anyone advise me of the cause of this message and how to fix the
> problem?  I can't find mention of it in the help section.

> Thanks,
> Ian B

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Sat, 02 Nov 2002 03:00:00 GMT  
 Insufficient base table information for updating or refreshing?

Make sure that your table has a primary key defined.

--

Andrew Grillage
http://www.concresco.com



Quote:
> I am using VB6-ADO-Access 97 database.  On one form I have a datagrid
> control with an ADO recordset as its data source the code is as
> follows: -

> Dim Rs As ADODB.Recordset
> Set Rs = New ADODB.Recordset
> Rs.Open "SELECT * from Descriptions WHERE Descriptions.LinkField = '" &
> datPrimaryRS.Recordset.Fields("URN") & "';", ConnMain, adUseClient,
> adLockOptimistic
> Set DataGrid1.DataSource = Rs

> This works fine as far as showing the grid with the correct data in at
> run time.  However, when I edit the text within a cell and then cause
> the update event to fire I get the following message and the update
> does not occur: -

> Insufficient base table information for updating or refreshing

> Can anyone advise me of the cause of this message and how to fix the
> problem?  I cant find mention of it in the help section.

> Thanks,
> Ian B

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Sat, 02 Nov 2002 03:00:00 GMT  
 Insufficient base table information for updating or refreshing?

Thanks for your responses guys.

...As it happens, that particular table didn not have a primary key
defined so I corrected that.  Unfortunately, that didn't solve the
problem though.

I spent some more time on it and eventually discovered that I had the
following line in my global code module: -

        ConnMain.CursorLocation = adUseClient

I'm not sure why that got in there... I'm still new to ADO so I get a
few things wrong still - anyway, I removed it and it worked!
--
Ian B

Sent via Deja.com http://www.deja.com/
Before you buy.



Sat, 02 Nov 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Insufficient base table information for updating or refreshing.

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

3. Insufficient base table information for updating or refreshing

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

5. Insufficient base table information for updating or refreshing

6. Insufficient base table information for updating or refreshing.

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

8. Insufficient base table information for updating or refreshing

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

10. Insufficient base table information for updating or refreshing

11. AdodcSave:-2147467259 - Insufficient base table information for updatig or refreshing

12. VB6 ADO Insufficient Base Table information for updating or refreshing error (Why?)

 

 
Powered by phpBB® Forum Software