I have a simple vb code to look in one table, record 2 values, go to next table, find the records with value1, paste value2.<br><br>Here is the code:<br><br>Function AddCStoCOtbl()<br> Dim rs0, rs1 As Recordset<br> Dim db As Database<br> Dim tst, pw As String<br> Dim cs As Long<br><br> Set db = CurrentDb()<br> Set rs0 = db.OpenRecordset("Projects"
<br> Set rs1 = db.OpenRecordset("ChangeOrders"
<br><br>rs0.MoveFirst<br>Do While Not rs0.EOF<br> pw = rs0![PW#]<br> cs = rs0![CS#]<br> tst = BuildCriteria("PW#", dbText, pw)<br> rs1.MoveFirst<br> rs1.FindFirst tst<br> If rs1.NoMatch Then<br> GoTo jump_loop<br> End If<br> rs1.Edit<br> rs1![CS#] = cs<br> rs1.Update<br> <br> Do While Not rs1.EOF<br> rs1.FindNext tst<br> If rs1.NoMatch Then<br> GoTo jump_loop<br> End If<br> rs1.Edit<br> rs1![CS#] = cs<br> rs1.Update<br> Loop<br> <br>jump_loop:<br>rs0.MoveNext<br>Loop<br><br>rs0.Close<br>rs1.Close<br>db.Close<br>End Function<br><br>The first occurance of rs1.FindFirst tst I get the "Operation is not supported for this type of object" message.<br><br>Both tables have a text field PW#, so the 'tst' criteria does apply to rs1.<br><br>Any idea why this is happening?<br><br>Thanks.<br>Shar