I'm actually not updating. I'm populating a new table, and then crunching that table. This is sailboat racing program. Note the Sendkey. That is Sendkeys work around in another module to make this legal for AC7.
You can check out the program at:
http://www.toye.us
Function AutoUpdateLast5()
On Error GoTo AutoUpdateLast5_Err
DoCmd.SetWarnings False
' MemberPageToUpdate Table=Fleet Members has Next Button tr-runs this query
DoCmd.OpenForm "UpdateLast5Races", acNormal, "", "", , acNormal
DoCmd.GoToControl "MemberID"
' copy member ID
Sendkey "^{INSERT}", True
DoCmd.CopyObject "", "Last5", acTable, "Last5Master"
' paste member ID when "Last5RacesInDateOrder" dialog box opens
Sendkey "^V {ENTER}", False
DoCmd.OpenQuery "Last5RacesInDateOrder", acNormal, acEdit
DoCmd.OpenQuery "AppendToLast5Compilation", acNormal, acEdit
DoCmd.GoToRecord , "", acNext
DoCmd.GoToControl "Command4"
Sendkey "{ENTER}", False
AutoUpdateLast5_Exit:
Exit Function
AutoUpdateLast5_Err:
Resume AutoUpdateLast5_Exit
End Function