'Errors Occurred'
'Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.'
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Microsoft ActiveX Data Objects Library
Dim CN As ADODB.Connection
Dim RS As ADODB.Recordset
Dim strSQL As String
Dim DBPath As String
Dim emptystring As String 'If this is initialized it does not error.
'emptystring = ""
Set CN = New ADODB.Connection
Set RS = New ADODB.Recordset
DBPath = "D:\Program Files\Microsoft Visual Studio\VB98\NWIND.MDB"
On Error Resume Next 'for table drop & creation
With CN
.ConnectionString = "Data Source=" & DBPath
.Provider = "Microsoft.Jet.OLEDB.3.51"
.Open
.Execute "drop table testit"
.Execute "Create table TestIt (Fld1 Text(10), Fld2 Integer, Fld3 Text(10))"
End With
On Error GoTo 0 'for table drop & creation
strSQL = "select * from Testit"
RS.Open strSQL, CN, adOpenKeyset, adLockOptimistic
RS.AddNew
With RS
!Fld1 = ""
!Fld3 = emptystring '"Errors Occurred."
End With
Keywords: kbbug, kbdatabase, kbfix, kbjet, kbmdac250fix, kbmdacnosweep, KB228935