Hi All
I have a continuous form that shows records from a table. There is a button which opens a popup form for data entry. Once the user completes their data entry there is a button to Save/Exit and this requeries the continuous form so the new record is visible, but i would like to move the focus to the new record.
In the popup form the Save/Exit button has:
Private Sub btnSaveAndExit_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close
'refresh the consignment form to show new product
[Forms]![form-DS-Consignments].Requery
End Sub
Which all works fine but this leaves the user at the first record of the continuous form and not the new one at the bottom. How do i move the user to that new record as they exit the popup form
Hope that makes sense
I have a continuous form that shows records from a table. There is a button which opens a popup form for data entry. Once the user completes their data entry there is a button to Save/Exit and this requeries the continuous form so the new record is visible, but i would like to move the focus to the new record.
In the popup form the Save/Exit button has:
Private Sub btnSaveAndExit_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close
'refresh the consignment form to show new product
[Forms]![form-DS-Consignments].Requery
End Sub
Which all works fine but this leaves the user at the first record of the continuous form and not the new one at the bottom. How do i move the user to that new record as they exit the popup form
Hope that makes sense