Here try this - here's some of the code I'm using
Dim totaliser
Set adoConnection = New ADODB.Connection
'create new recordset
Set adoRecordset = New ADODB.Recordset
'build connection string
ConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=J:\Group\Production\New Shift Log\shiftlogsetup.mdb"
'open db
adoConnection.Open ConnectString
'open recordset
adoRecordset.Open "1ctu12vdu", adoConnection, adOpenDynamic, adLockBatchOptimistic
totaliser = 12345
adoRecordset.MoveFirst
adoRecordset.Update "shift1value", totaliser
adoRecordset.Close
adoConnection.Close
Set adoRecordset = Nothing
Set adoConnection = Nothing
This runs OK but doesn't write anything into the field ???
The code usually runs in a loop to update every record as the loop goes around , but I now get a "Number of rows with pending changes exceeded the limit" from the "provider" which I assume is the JET engine. If I am updating immeadiately - why are there "pending" changes waiting and where ? ? ? I think I'm just missing something fundamental here !??!
Regards - DimWit