Hello All,
I am using Access 2000 SP-3.
I have a form (recordsource: tblProjects), which has a subform (recordsource: tblTimesheets) linked on a ProjectID (autonumber). The subform displays as a continuous form. I had created a button in the header of the subform that would go to the last record (aka at the bottom of the subform) to quickly facilitate a new entry. For quite some time the button worked perfectly. Now it doesn't work anymore. Clicking the button does nothing, no error message is displayed. I have tried to delete and re-create the button, but it still doesn't work.
Button code is as follows:
I have tried "Compact and Repair", but it doesn't fix the problem.
If anyone has experienced this phenomenon of code suddenly not working and knows how to fix it, I'd appreciate it.
Thanks,
Heather
Floyd Innovations ![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
I am using Access 2000 SP-3.
I have a form (recordsource: tblProjects), which has a subform (recordsource: tblTimesheets) linked on a ProjectID (autonumber). The subform displays as a continuous form. I had created a button in the header of the subform that would go to the last record (aka at the bottom of the subform) to quickly facilitate a new entry. For quite some time the button worked perfectly. Now it doesn't work anymore. Clicking the button does nothing, no error message is displayed. I have tried to delete and re-create the button, but it still doesn't work.
Button code is as follows:
Code:
Private Sub cmdGoToLast_Click()
On Error GoTo Err_cmdGoToLast_Click
DoCmd.GoToRecord , , acLast
Exit_cmdGoToLast_Click:
Exit Sub
Err_cmdGoToLast_Click:
MsgBox Err.Description
Resume Exit_cmdGoToLast_Click
End Sub
I have tried "Compact and Repair", but it doesn't fix the problem.
If anyone has experienced this phenomenon of code suddenly not working and knows how to fix it, I'd appreciate it.
Thanks,
Heather
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)