I have a Form that has quite a few subforms in it that update based on entries in the [Units Worked Billing Query subform] I am including the code that I have now just to give you an idea of the prameters. From the [Units Worked Billing Query subform] Hours Worked field AfterUpdate I need to requery the [Billing Work Form] and have it return to the same record I was working on and SetFocus on the last record and in the Units field of the [Units Worked Billing Query subform]. I hope this is clear. I am stuck and frustrated. Any help you could give would be very appreciated.
Private Sub Hours_Worked_AfterUpdate()
Forms![Billing Work Form].Requery
Me.[Units Worked Billing Query subform].SetFocus
DoCmd.GoToRecord acActiveDataObject, , acLast
Forms![Billing Work Form].[Units Worked HC Month].Requery
Forms![Billing Work Form].[Units Worked PC Month].Requery
Forms![Billing Work Form].[Units Worked Respite Month].Requery
Forms![Billing Work Form].[Units Worked APC Month].Requery
Forms![Billing Work Form].[Units Worked LPN Daily Month].Requery
Forms![Billing Work Form].[Units Worked Nurse Visit].Requery
Forms![Billing Work Form].[Units Worked Nurse Superv MO].Requery
End Sub
This obviously resets me to the first record in the main form. I need it to do what I've described above Thanks
Private Sub Hours_Worked_AfterUpdate()
Forms![Billing Work Form].Requery
Me.[Units Worked Billing Query subform].SetFocus
DoCmd.GoToRecord acActiveDataObject, , acLast
Forms![Billing Work Form].[Units Worked HC Month].Requery
Forms![Billing Work Form].[Units Worked PC Month].Requery
Forms![Billing Work Form].[Units Worked Respite Month].Requery
Forms![Billing Work Form].[Units Worked APC Month].Requery
Forms![Billing Work Form].[Units Worked LPN Daily Month].Requery
Forms![Billing Work Form].[Units Worked Nurse Visit].Requery
Forms![Billing Work Form].[Units Worked Nurse Superv MO].Requery
End Sub
This obviously resets me to the first record in the main form. I need it to do what I've described above Thanks