“The data has been changed” error when stepping from main form into sub form

后端 未结 3 1267
遇见更好的自我
遇见更好的自我 2021-01-12 02:30

I\'m migrating an Access database to SQL Server using the SQL Server Migration Assistant (SSMA). The Access application will continue to be used but with linked tables inst

3条回答
  •  不知归路
    2021-01-12 02:41

    After much trial and error I solved the issue. In the enter event handler for the sub form control on the main form, I requeried the sub form itself.

    eg On the main form:

    Private Sub Subform1_Enter()
        Me.Subform1.Form.Requery
    End Sub
    

    I don't know why this works, only that it does.

提交回复
热议问题