문제

I would like to know the feasibility of writing a routine which allows for the user scrolling through a single form when arriving at the last record to be able to continue scrolling at the first record in the form. Basically i want to make one button that allows the user to be able to endlessly scroll through his records. It it possible with code? Perhaps there is already a function in MSAccess allowing for this to happen? Thanks

도움이 되었습니까?

해결책

It appears i worked it out. .Thanks anyway

If CurrentRecord = Recordset.RecordCount And CurrentRecord <> 1 Then
    DoCmd.GoToRecord , "", acFirst
Else
    On Error GoTo cmdRecordSuccessivo_Click_Err
    DoCmd.GoToRecord , "", acNext

cmdRecordSuccessivo_Click_Exit:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top