Locopete99
Registered User.
- Local time
- Today, 12:45
- Joined
- Jul 11, 2016
- Messages
- 163
Hi Guys,
I have a table that has a field in it which is a "months remaining" field.
This is calcuated by doing a date diff between today and the end date field on the record.
I wont paste the whole code, as i'm sure you know how to do it.
What I want to be able to do though is have a refresh button that calculates this date for all records in a table.
So using my record set to update the field, how do I get this to run for all records?
I have a table that has a field in it which is a "months remaining" field.
This is calcuated by doing a date diff between today and the end date field on the record.
I wont paste the whole code, as i'm sure you know how to do it.
What I want to be able to do though is have a refresh button that calculates this date for all records in a table.
Code:
Set rsSubba11 = CurrentDb.OpenRecordset("Tbl_ShikomiRegister", dbOpenDynaset)
With rsSubba11
.FindFirst "[Blanket Agreement Number] =" & "'" & [Blanket Agreement Number] & "'"
.Edit
![Months to run out] = ddif
.Update
End With
DoCmd.RefreshRecord
So using my record set to update the field, how do I get this to run for all records?