nycbigapple
Technical User
Hi, i have a subform that has a command button. When i click on the command button it is going to update a query called qsponser. However, the record is only updating the first record in the subform and not iterating to the next record. When I debugg, the mailinglistid is always 4.
Thanks
Thanks
Code:
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim qd As DAO.QueryDef
Dim intI As Integer
Set dbs = CurrentDb
Set qd = dbs.QueryDefs!qsponser'Query where update is going to be
Set rst = qd.OpenRecordset
rst.MoveFirst
Do Until rst.EOF
rst.AddNew
rst!MailingListID = MailingListID
rst!Date = Me.txtToday
rst!Type = Me.type
rst!sponserID = Me.sponserID
rst.Update
rst.MoveNext
Loop