W
Wayne-I-M
Hi
I have a filtered continous form and I am trying to (loop through and)
update each record on the form with a time value
The form control is txtFlightDate
The table name is tblflights
The table field is FlightDate
I have cut and pasted these names from the table and the form into the code
so they are correct but I am getting
Error 3265
Item not found in this collection
Private Sub cmdUpdate_Click()
Set RS = Me.RecordsetClone
If Not RS.EOF Then RS.MoveFirst
While Not RS.EOF
RS.Edit
RS!CurrentDb.Execute "INSERT INTO tblflights (FlightDate) VALUES (" &
Me.txtFlightDate.Value & " )"
RS.Update
RS.MoveNext
Wend
End Sub
Any ideas on this would be really helpful
Thanks
I have a filtered continous form and I am trying to (loop through and)
update each record on the form with a time value
The form control is txtFlightDate
The table name is tblflights
The table field is FlightDate
I have cut and pasted these names from the table and the form into the code
so they are correct but I am getting
Error 3265
Item not found in this collection
Private Sub cmdUpdate_Click()
Set RS = Me.RecordsetClone
If Not RS.EOF Then RS.MoveFirst
While Not RS.EOF
RS.Edit
RS!CurrentDb.Execute "INSERT INTO tblflights (FlightDate) VALUES (" &
Me.txtFlightDate.Value & " )"
RS.Update
RS.MoveNext
Wend
End Sub
Any ideas on this would be really helpful
Thanks