Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get Resync to work 1

Status
Not open for further replies.

FancyPrairie

Programmer
Oct 16, 2001
2,917
US
I'm having trouble getting the Resync method to work on a recordset. For testing purposes I created a table with one date/time field. The following code returns the error "3251 The current provider does not support refreshing underlying values". It appears that the recordset supports the Resync method because rst.supports(adResync) returns true.

What am I doing wrong?

Code:
Function foo()

    Dim rst As New ADODB.Recordset
    
    rst.Open "select * from Table1", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
    
    rst.Resync

ExitProcedure:

    Exit Function
    
ErrHandler:

    MsgBox Err.Number & vbCrLf & Err.Description
    Resume ExitProcedure
    
End Function
 
From David Browne:

rst.CursorLocation = adUseClient
 
I tried that once and it didn't work. Must have typed something wrong. Anyway, it now works thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top