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

Hi,

I get this error message of "Insufficient  base table information for
updating or refreshing" when I tried to update a numeric value to a table.

May I know what is this error message really mean?

Your advice would be much appreaciated.

Thank you.

Best Regards,
Christina



Tue, 04 Nov 2003 10:41:26 GMT  
 Insufficient base table information for updating or refreshing
Hello Christina

Please post the routine for updating/refresh and help would forthcoming fast
and precise

Regards
Sukesh


Quote:
> Hi,

> I get this error message of "Insufficient  base table information for
> updating or refreshing" when I tried to update a numeric value to a table.

> May I know what is this error message really mean?

> Your advice would be much appreaciated.

> Thank you.

> Best Regards,
> Christina



Tue, 04 Nov 2003 13:32:46 GMT  
 Insufficient base table information for updating or refreshing
Private Sub cmdOK_Click()
SQL_SearchOpen
If gBln_Found = True Then
   a300_Update_RawMat
End If
SQL_SearchClose

end Sub

Public Sub SQL_SearchOpen()
    SQLQuery.CursorLocation = adUseClient
    SQLQuery.Open sSQL, MyDatabase, adOpenDynamic, adLockOptimistic
    If SQLQuery.RecordCount > 0 Then
        gBln_Found = True
    Else
        gBln_Found = False
    End If
End Sub

Private Sub a300_Update_RawMat()
With Me.fgridRawMat
    SQLQuery("QtyOnHand") = _
        SQLQuery("QtyOnHand") - CDbl((.TextMatrix(gInt1, Col_QtyDraw)))
    SQLQuery.Update
End With
End Sub

Public Function SQL_SearchClose()
    SQLQuery.Close
End Function

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Tue, 04 Nov 2003 13:59:28 GMT  
 Insufficient base table information for updating or refreshing
Hi Sukesh,

Thanks for your response on my question.

The code is as follow:

Private Sub cmdOK_Click()
    SQL_SearchOpen
    If gBln_Found = True Then
       a300_Update_RawMat
    End If
    SQL_SearchClose
end Sub

Public Sub SQL_SearchOpen()
    SQLQuery.CursorLocation = adUseClient
    SQLQuery.Open sSQL, MyDatabase, adOpenDynamic, adLockOptimistic
    If SQLQuery.RecordCount > 0 Then
        gBln_Found = True
    Else
        gBln_Found = False
    End If
End Sub

Private Sub a300_Update_RawMat()
    With Me.fgridRawMat
        SQLQuery("QtyOnHand") = SQLQuery("QtyOnHand") - CDbl((.TextMatrix(gInt1, Col_QtyDraw)))
        SQLQuery.Update
    End With
End Sub

Public Function SQL_SearchClose()
    SQLQuery.Close
End Function

Regards,
Christina

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Tue, 04 Nov 2003 14:02:29 GMT  
 Insufficient base table information for updating or refreshing
Hello Christina

Just couple of points and questions

1) If you adUseClient, the only valid setting for cursor type property is
adOpenKeySet
2) There is plethora of SQL terms in your code. How are you retrieving data
from the table via adCmdTable or adCmText as the command type ?

3) SQLQuery is a recordset.  then the update routine should be in case
adCmdTable

     With Me.fgridRawMat
      SQLQuery.Fields("QtyOnHand").Value =
SQLQuery.Fields("QtyOnHand").Value - CDbl((.TextMatrix(gInt1, Col_QtyDraw)))
      SQLQuery.Update
     End With
 End Sub

But in case you are retrieving data via an SQL statement, then try using SQL
statement to update the record

NewValue = SQLQuery.Fields("QtyOnHand").Value - CDbl((.TextMatrix(gInt1,
Col_QtyDraw)))

UPDATE Table SET QtyOnHand ='" &str(NewValue) & "'"

If str(NewValue) does not work, try Mid(str(NewValue),2)

HTH

Sukesh


Quote:
> Hi Sukesh,

> Thanks for your response on my question.

> The code is as follow:

> Private Sub cmdOK_Click()
>     SQL_SearchOpen
>     If gBln_Found = True Then
>        a300_Update_RawMat
>     End If
>     SQL_SearchClose
> end Sub

> Public Sub SQL_SearchOpen()
>     SQLQuery.CursorLocation = adUseClient
>     SQLQuery.Open sSQL, MyDatabase, adOpenDynamic, adLockOptimistic
>     If SQLQuery.RecordCount > 0 Then
>         gBln_Found = True
>     Else
>         gBln_Found = False
>     End If
> End Sub

> Private Sub a300_Update_RawMat()
>     With Me.fgridRawMat
>         SQLQuery("QtyOnHand") = SQLQuery("QtyOnHand") -

CDbl((.TextMatrix(gInt1, Col_QtyDraw)))

- Show quoted text -

Quote:
>         SQLQuery.Update
>     End With
> End Sub

> Public Function SQL_SearchClose()
>     SQLQuery.Close
> End Function

> Regards,
> Christina

> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Tue, 04 Nov 2003 17:41:54 GMT  
 Insufficient base table information for updating or refreshing
Hello Christina

One correction - the only cursor  type setting is  asOpenStatic for for
adUseClient

Sukesh


Quote:
> Hello Christina

> Just couple of points and questions

> 1) If you adUseClient, the only valid setting for cursor type property is
> adOpenKeySet
> 2) There is plethora of SQL terms in your code. How are you retrieving
data
> from the table via adCmdTable or adCmText as the command type ?

> 3) SQLQuery is a recordset.  then the update routine should be in case
> adCmdTable

>      With Me.fgridRawMat
>       SQLQuery.Fields("QtyOnHand").Value =
> SQLQuery.Fields("QtyOnHand").Value - CDbl((.TextMatrix(gInt1,
Col_QtyDraw)))
>       SQLQuery.Update
>      End With
>  End Sub

> But in case you are retrieving data via an SQL statement, then try using
SQL
> statement to update the record

> NewValue = SQLQuery.Fields("QtyOnHand").Value - CDbl((.TextMatrix(gInt1,
> Col_QtyDraw)))

> UPDATE Table SET QtyOnHand ='" &str(NewValue) & "'"

> If str(NewValue) does not work, try Mid(str(NewValue),2)

> HTH

> Sukesh



> > Hi Sukesh,

> > Thanks for your response on my question.

> > The code is as follow:

> > Private Sub cmdOK_Click()
> >     SQL_SearchOpen
> >     If gBln_Found = True Then
> >        a300_Update_RawMat
> >     End If
> >     SQL_SearchClose
> > end Sub

> > Public Sub SQL_SearchOpen()
> >     SQLQuery.CursorLocation = adUseClient
> >     SQLQuery.Open sSQL, MyDatabase, adOpenDynamic, adLockOptimistic
> >     If SQLQuery.RecordCount > 0 Then
> >         gBln_Found = True
> >     Else
> >         gBln_Found = False
> >     End If
> > End Sub

> > Private Sub a300_Update_RawMat()
> >     With Me.fgridRawMat
> >         SQLQuery("QtyOnHand") = SQLQuery("QtyOnHand") -
> CDbl((.TextMatrix(gInt1, Col_QtyDraw)))
> >         SQLQuery.Update
> >     End With
> > End Sub

> > Public Function SQL_SearchClose()
> >     SQLQuery.Close
> > End Function

> > Regards,
> > Christina

> > *** Sent via Developersdex http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!



Wed, 05 Nov 2003 09:35:42 GMT  
 
 [ 6 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