Hi,
If my form is bound to a table, and the form is open, I add a new record to the table that is bound to that form, is it possible to go to that new record that is just added?
I tried using the below but it says no record found. I guess its normal because the current form is open and did not refresh the new added data?
If my form is bound to a table, and the form is open, I add a new record to the table that is bound to that form, is it possible to go to that new record that is just added?
I tried using the below but it says no record found. I guess its normal because the current form is open and did not refresh the new added data?
Code:
Dim rs as Recordset
Dim sCriteria as string
Set rs = Me.Form.Recordsetclone
sCriteria = "[work_id] = """ & sWorkId & """"
If rs.FindFirst sCriteria
Me.Bookmark=rs.Bookmark
'** sWorkId is a global variable that is associate after adding that new record