Dec 10, 2002 #1 DaveMac Technical User Apr 9, 2000 161 US How do you use ACLast? I want to know the value of the last record in the detail of a report.
Dec 10, 2002 #2 Darrylles Programmer Feb 7, 2002 1,758 GB Hiya, DoCmd.GoToRecord , , acLast Will point to the last record. Regards, Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience." Upvote 0 Downvote
Hiya, DoCmd.GoToRecord , , acLast Will point to the last record. Regards, Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience."
Dec 10, 2002 #3 danvlas Programmer Jul 30, 2002 2,446 RO In the Format event of the report footer, check the value(s) in the control(s) you want to inspect. Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer) MsgBox Me("ControlName" End Sub It will return the value of that control in the last record displayed on the report. Good luck Daniel Vlas Systems Consultant danvlas@yahoo.com Upvote 0 Downvote
In the Format event of the report footer, check the value(s) in the control(s) you want to inspect. Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer) MsgBox Me("ControlName" End Sub It will return the value of that control in the last record displayed on the report. Good luck Daniel Vlas Systems Consultant danvlas@yahoo.com