Hi People
I am getting the error Multi Step OLE DB Generated error on this piece of code.
VB Code:
  1. Dim rsDel As Recordset
  2. Dim cnn As Connection
  3. Dim strSQL As String
  4. Set rsDel = New Recordset
  5. Set cnn = CurrentProject.Connection
  6. strSQL = "Select * from EmployeeStates Where FK_EmpID =" & Me.Parent!EmployeeID & " "
  7. rsDel.Open strSQL, cnn, adOpenDynamic, adLockOptimistic, adCmdText
  8.  
  9.    While Not rsDel.BOF And Not rsDel.EOF
  10.   With rsDel
  11.   .Delete
  12.        .Update
  13.        
  14.    
  15.     End With
  16.        Wend
  17.    rsDel.Close
Does anyone know a workround?