Hi,
I found the following code online and it allows me to loop through each record based on the results of a query and make changes to the field which is exactly what i want to do.
how can i define strSql to a query builder query I created. Thanks.Code:Dim rs As DAO.Recordset Dim db As Database Dim strSQL as String Set db=CurrentDB strSQL = "select * from table where some condition" Set rs = db.OpenRecordset(strSQL) Do While Not rs.EOF rs.Edit rs!SomeField = "Abc" rs!OtherField = 2 rs!ADate = Date() rs.Update rs.MoveNext Loop