M
mattsmom
I am trying to update multiple records in Access 2007 by inputting a date one
time in a form.
time in a form.
boblarson said:You can set an update query to only update certain records based on some
criteria, and I would highly suggest that method because it is way more
efficient that iterating through a recordset. However, depending on how you
have it set up, you could go add the date to the displayed records, if that
is better for you. You could use something like this:
Dim rst As DAO.Recordset
Set rst = Me.Recordset
Do Until rst.EOF
With rst
.Fields("YourFieldNameOrIndexHere") = Date
.Update
.MoveNext
End With
Loop
rst.Close
Set rst = Nothing
--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com
If my post was helpful to you, please rate the post.
__________________________________